Fix yellow from 4506f2b58d
Change-Id: I60bb56830ef5ba0fcde4564cdafef594af400c70
This commit is contained in:
parent
4506f2b58d
commit
923f92cb12
1 changed files with 2 additions and 1 deletions
|
@ -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. */
|
||||
static int voltage_to_percent(int voltage, const short* table)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue