diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 25a9a127e7..8c9b17d52b 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -284,7 +284,8 @@ static void send_battery_level_event(int percent) | |||
284 | } | 284 | } |
285 | } | 285 | } |
286 | 286 | ||
287 | #if !(CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) | 287 | #if !(CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) && \ |
288 | (CONFIG_BATTERY_MEASURE & VOLTAGE_MEASURE) | ||
288 | /* Look into the percent_to_volt_* table and estimate the battery level. */ | 289 | /* Look into the percent_to_volt_* table and estimate the battery level. */ |
289 | static int voltage_to_percent(int voltage, const short* table) | 290 | static int voltage_to_percent(int voltage, const short* table) |
290 | { | 291 | { |