Fix yellow from 4506f2b58d

Change-Id: I60bb56830ef5ba0fcde4564cdafef594af400c70
This commit is contained in:
Aidan MacDonald 2021-12-23 11:37:15 +00:00
parent 4506f2b58d
commit 923f92cb12

View file

@ -284,7 +284,8 @@ static void send_battery_level_event(int percent)
} }
} }
#if !(CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) #if !(CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) && \
(CONFIG_BATTERY_MEASURE & VOLTAGE_MEASURE)
/* Look into the percent_to_volt_* table and estimate the battery level. */ /* Look into the percent_to_volt_* table and estimate the battery level. */
static int voltage_to_percent(int voltage, const short* table) static int voltage_to_percent(int voltage, const short* table)
{ {