fix x20 and yp-r1 builds.

Change-Id: Ifc6638c2ed6bc862ded389f1b81f30c7a0419ec0
This commit is contained in:
Solomon Peachy 2020-09-28 22:26:59 -04:00
parent 0ebfe3dfcf
commit 977a03a1a4

View file

@ -86,8 +86,8 @@ static int poweroff_timeout = 0;
static long last_event_tick = 0;
#if (CONFIG_BATTERY_MEASURE & PERCENTAGE_MEASURE) == PERCENTAGE_MEASURE
int _battery_level(void) { return -1; }
#ifdef SIMULATOR
int _battery_level(void) { return -1; }
int _battery_voltage(void);
extern const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11];
extern const unsigned short percent_to_volt_charge[11];