1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +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;
}
if (feature(FEATURE_VBAT || feature(FEATURE_CURRENT_METER))) {
if (feature(FEATURE_VBAT || FEATURE_CURRENT_METER)) {
vbatCycleTime += cycleTime;
if (!(++vbatTimer % VBATFREQ)) {
if (feature(FEATURE_VBAT)) {
updateBatteryVoltage();
batteryWarningEnabled = shouldSoundBatteryAlarm();
}
if (feature(FEATURE_CURRENT_METER)) {
updateCurrentMeter(vbatCycleTime);
}
batteryWarningEnabled = shouldSoundBatteryAlarm();
}
}