diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-29 20:59:05 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-05 13:37:25 -0500 |
commit | e3ee1908ddf99711b65b46fdab0c7b4ddca7867d (patch) | |
tree | ae466471001efac7e1d8072fd124094c387bbd3d /firmware/export/config.h | |
parent | 204be7f637b36e1c5c7615fe1381f45ad58e293d (diff) | |
download | rockbox-e3ee1908ddf99711b65b46fdab0c7b4ddca7867d.tar.gz rockbox-e3ee1908ddf99711b65b46fdab0c7b4ddca7867d.zip |
powermgmt: Small cleanups to battery capacity code
- Don't include the 'battery capacity' setting unless the
target allows changing it.
- Clean up the preprocessor conditionals used to check for
variable battery capacity support.
- Don't use a variable for battery capacity unless it is
actually needed.
Change-Id: I3d8a338f107014f2c5098bc0a44ef0cfb4df9356
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index bb3f405d6a..277a1d8632 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -709,6 +709,14 @@ Lyre prototype 1 */ | |||
709 | #define BATTERY_CAPACITY_DEFAULT 0 | 709 | #define BATTERY_CAPACITY_DEFAULT 0 |
710 | #endif | 710 | #endif |
711 | 711 | ||
712 | #ifndef BATTERY_CAPACITY_MIN | ||
713 | #define BATTERY_CAPACITY_MIN BATTERY_CAPACITY_DEFAULT | ||
714 | #endif | ||
715 | |||
716 | #ifndef BATTERY_CAPACITY_MAX | ||
717 | #define BATTERY_CAPACITY_MAX BATTERY_CAPACITY_DEFAULT | ||
718 | #endif | ||
719 | |||
712 | #ifndef BATTERY_CAPACITY_INC | 720 | #ifndef BATTERY_CAPACITY_INC |
713 | #define BATTERY_CAPACITY_INC 0 | 721 | #define BATTERY_CAPACITY_INC 0 |
714 | #endif | 722 | #endif |