diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 6c7f96baad..c4582a7302 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -936,7 +936,7 @@ static void power_thread(void) | |||
936 | avgbat = avgbat * BATT_AVE_SAMPLES; | 936 | avgbat = avgbat * BATT_AVE_SAMPLES; |
937 | battery_centivolts = avgbat / BATT_AVE_SAMPLES / 10000; | 937 | battery_centivolts = avgbat / BATT_AVE_SAMPLES / 10000; |
938 | 938 | ||
939 | #ifdef CONFIG_CHARING | 939 | #ifdef CONFIG_CHARGING |
940 | if(charger_inserted()) { | 940 | if(charger_inserted()) { |
941 | battery_percent = voltage_to_percent(battery_centivolts, | 941 | battery_percent = voltage_to_percent(battery_centivolts, |
942 | percent_to_volt_charge); | 942 | percent_to_volt_charge); |