diff options
-rw-r--r-- | firmware/powermgmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 9d23c6b86f..54e7592987 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -240,7 +240,11 @@ static unsigned int battery_millivolts;/* filtered battery voltage, millivolts * | |||
240 | /* battery level (0-100%) of this minute, updated once per minute */ | 240 | /* battery level (0-100%) of this minute, updated once per minute */ |
241 | static int battery_percent = -1; | 241 | static int battery_percent = -1; |
242 | static int battery_capacity = BATTERY_CAPACITY_DEFAULT; /* default value, mAh */ | 242 | static int battery_capacity = BATTERY_CAPACITY_DEFAULT; /* default value, mAh */ |
243 | #if BATTERY_TYPES_COUNT > 1 | ||
243 | static int battery_type = 0; | 244 | static int battery_type = 0; |
245 | #else | ||
246 | #define battery_type 0 | ||
247 | #endif | ||
244 | 248 | ||
245 | /* Power history: power_history[0] is the newest sample */ | 249 | /* Power history: power_history[0] is the newest sample */ |
246 | unsigned short power_history[POWER_HISTORY_LEN]; | 250 | unsigned short power_history[POWER_HISTORY_LEN]; |