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:
parent
5b1b6fe98e
commit
08d998e9a4
1 changed files with 2 additions and 3 deletions
5
src/mw.c
5
src/mw.c
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue