Merge pull request #801 from TheAngularity/patch-2
fixed ledstrip warning blink with better visualisation
This commit is contained in:
commit
aebd72a924
|
@ -694,10 +694,10 @@ static void applyLedWarningLayer(bool updateNow, uint32_t *timer)
|
||||||
if (warningFlags & (1 << warningId)) {
|
if (warningFlags & (1 << warningId)) {
|
||||||
switch (warningId) {
|
switch (warningId) {
|
||||||
case WARNING_ARMING_DISABLED:
|
case WARNING_ARMING_DISABLED:
|
||||||
warningColor = colorOn ? &HSV(GREEN) : NULL;
|
warningColor = colorOn ? &HSV(GREEN) : &HSV(BLACK);
|
||||||
break;
|
break;
|
||||||
case WARNING_LOW_BATTERY:
|
case WARNING_LOW_BATTERY:
|
||||||
warningColor = colorOn ? &HSV(RED) : NULL;
|
warningColor = colorOn ? &HSV(RED) : &HSV(BLACK);
|
||||||
break;
|
break;
|
||||||
case WARNING_FAILSAFE:
|
case WARNING_FAILSAFE:
|
||||||
warningColor = colorOn ? &HSV(YELLOW) : &HSV(BLUE);
|
warningColor = colorOn ? &HSV(YELLOW) : &HSV(BLUE);
|
||||||
|
|
Loading…
Reference in New Issue