From e8b9bc329005e5b55d766225090d86eab71e8801 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 2 Jun 2017 20:12:19 +1200 Subject: [PATCH] Changed beeper warning LED to only activate when no other warnings are shown. --- src/main/io/ledstrip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/io/ledstrip.c b/src/main/io/ledstrip.c index 67b0a0f57a..2418684bd0 100644 --- a/src/main/io/ledstrip.c +++ b/src/main/io/ledstrip.c @@ -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) {