Changed beeper warning LED to only activate when no other warnings are shown.

This commit is contained in:
Michael Keller 2017-06-02 20:12:19 +12:00
parent 27679e69f2
commit e8b9bc3290
1 changed files with 4 additions and 4 deletions

View File

@ -546,10 +546,6 @@ static void applyLedWarningLayer(bool updateNow, timeUs_t *timer)
const hsvColor_t *warningColor = NULL; const hsvColor_t *warningColor = NULL;
if (isBeeperOn()) {
warningColor = &HSV(ORANGE);
}
if (warningFlags) { if (warningFlags) {
bool colorOn = (warningFlashCounter % 2) == 0; // w_w_ bool colorOn = (warningFlashCounter % 2) == 0; // w_w_
warningFlags_e warningId = warningFlashCounter / 4; warningFlags_e warningId = warningFlashCounter / 4;
@ -567,6 +563,10 @@ static void applyLedWarningLayer(bool updateNow, timeUs_t *timer)
default:; default:;
} }
} }
} else {
if (isBeeperOn()) {
warningColor = &HSV(ORANGE);
}
} }
if (warningColor) { if (warningColor) {