forked from len0rd/rockbox
Fix android build, regression from 96463d855f
Change-Id: I1ddb80645c0e895a536a1cec8bebf6e721f8932e
This commit is contained in:
parent
96463d855f
commit
07b0015d17
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ static int voltage_to_battery_level(int millivolts)
|
|||
*/
|
||||
static void battery_status_update(void)
|
||||
{
|
||||
#if CONFIG_BATTERY_MEASURE & (PERCENTAGE_MEASURE | VOLTAGE_MEASURE)
|
||||
#if ((CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) && (CONFIG_BATTERY_MEASURE & VOLTAGE_MEASURE))
|
||||
int level = _battery_level();
|
||||
if (level == -1) {
|
||||
level = voltage_to_battery_level(voltage_now);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue