summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-12-23 11:37:15 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-23 11:37:15 +0000
commit923f92cb12ee39364ddec340de140d126ced1347 (patch)
treeaadf3668cb7b5b57cad5e637dd12ebdeb9366081
parent4506f2b58d533a5cf0055f43d234a19fa3ae2bdb (diff)
downloadrockbox-923f92cb12ee39364ddec340de140d126ced1347.tar.gz
rockbox-923f92cb12ee39364ddec340de140d126ced1347.zip
Fix yellow from 4506f2b58d
Change-Id: I60bb56830ef5ba0fcde4564cdafef594af400c70
-rw-r--r--firmware/powermgmt.c3
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. */
289static int voltage_to_percent(int voltage, const short* table) 290static int voltage_to_percent(int voltage, const short* table)
290{ 291{