Changed beeper warning LED to only activate when no other warnings are shown.
This commit is contained in:
parent
27679e69f2
commit
e8b9bc3290
|
@ -546,10 +546,6 @@ static void applyLedWarningLayer(bool updateNow, timeUs_t *timer)
|
|||
|
||||
const hsvColor_t *warningColor = NULL;
|
||||
|
||||
if (isBeeperOn()) {
|
||||
warningColor = &HSV(ORANGE);
|
||||
}
|
||||
|
||||
if (warningFlags) {
|
||||
bool colorOn = (warningFlashCounter % 2) == 0; // w_w_
|
||||
warningFlags_e warningId = warningFlashCounter / 4;
|
||||
|
@ -567,6 +563,10 @@ static void applyLedWarningLayer(bool updateNow, timeUs_t *timer)
|
|||
default:;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (isBeeperOn()) {
|
||||
warningColor = &HSV(ORANGE);
|
||||
}
|
||||
}
|
||||
|
||||
if (warningColor) {
|
||||
|
|
Loading…
Reference in New Issue