mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 23:35:34 +03:00
LedStrip failsafe warning now correctly checks that the feature is
enabled.
This commit is contained in:
parent
5401092afa
commit
10d507ccc6
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ void applyLedWarningLayer(uint8_t updateNow)
|
||||||
if (feature(FEATURE_VBAT) && calculateBatteryState() != BATTERY_OK) {
|
if (feature(FEATURE_VBAT) && calculateBatteryState() != BATTERY_OK) {
|
||||||
warningFlags |= WARNING_FLAG_LOW_BATTERY;
|
warningFlags |= WARNING_FLAG_LOW_BATTERY;
|
||||||
}
|
}
|
||||||
if (failsafe->vTable->hasTimerElapsed()) {
|
if (feature(FEATURE_FAILSAFE) && failsafe->vTable->hasTimerElapsed()) {
|
||||||
warningFlags |= WARNING_FLAG_FAILSAFE;
|
warningFlags |= WARNING_FLAG_FAILSAFE;
|
||||||
}
|
}
|
||||||
if (!ARMING_FLAG(ARMED) && !ARMING_FLAG(OK_TO_ARM)) {
|
if (!ARMING_FLAG(ARMED) && !ARMING_FLAG(OK_TO_ARM)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue