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:
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;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue