From afbe7e52c2ce74973232d6ecf03ab398390e6f95 Mon Sep 17 00:00:00 2001 From: mikeller Date: Tue, 29 Nov 2016 19:00:14 +1300 Subject: [PATCH] Fixed consumption alert. --- src/main/sensors/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/battery.c b/src/main/sensors/battery.c index f1330bf41..8e02a16a8 100644 --- a/src/main/sensors/battery.c +++ b/src/main/sensors/battery.c @@ -296,7 +296,7 @@ void updateCurrentMeter(int32_t lastUpdateAt, rxConfig_t *rxConfig, uint16_t dea break; case BATTERY_WARNING: if (calculateBatteryCapacityRemainingPercentage() == 0) { - vBatState = BATTERY_CRITICAL; + consumptionState = BATTERY_CRITICAL; } break;