diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-07-07 09:48:40 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-07-07 13:49:24 +0000 |
commit | e9ae1e9a8b5ad8e1bf21540bf6547d292df9ade5 (patch) | |
tree | 5b1935a9ba6b8a5003907583688485fa2e03282d /firmware | |
parent | 841e704fc3b5bde96ca8de4794c85198e2f12a65 (diff) |
Fix red introduced in 841e704fc3
Change-Id: I5a924f77231a4764f3ad9b196875f5bf073945d6
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 51ea99f6fa..7e1523eb57 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -103,10 +103,12 @@ static unsigned int avgbat; /* filtered battery voltage, millivolts */ static unsigned int battery_millivolts; #else +#ifndef SIMULATOR int _battery_voltage(void) { return -1; } const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11]; const unsigned short percent_to_volt_charge[11]; #endif +#endif #if !(CONFIG_BATTERY_MEASURE & TIME_MEASURE) static int powermgmt_est_runningtime_min; |