1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Fix editor mishap in battery warning activation code.

This commit is contained in:
Dominic Clifton 2014-05-30 15:12:17 +01:00
parent 5b1b6fe98e
commit 08d998e9a4

View file

@ -222,19 +222,18 @@ void annexCode(void)
rcCommand[PITCH] = rcCommand_PITCH; rcCommand[PITCH] = rcCommand_PITCH;
} }
if (feature(FEATURE_VBAT || feature(FEATURE_CURRENT_METER))) { if (feature(FEATURE_VBAT || FEATURE_CURRENT_METER)) {
vbatCycleTime += cycleTime; vbatCycleTime += cycleTime;
if (!(++vbatTimer % VBATFREQ)) { if (!(++vbatTimer % VBATFREQ)) {
if (feature(FEATURE_VBAT)) { if (feature(FEATURE_VBAT)) {
updateBatteryVoltage(); updateBatteryVoltage();
batteryWarningEnabled = shouldSoundBatteryAlarm();
} }
if (feature(FEATURE_CURRENT_METER)) { if (feature(FEATURE_CURRENT_METER)) {
updateCurrentMeter(vbatCycleTime); updateCurrentMeter(vbatCycleTime);
} }
batteryWarningEnabled = shouldSoundBatteryAlarm();
} }
} }