diff --git a/src/main/io/ledstrip.c b/src/main/io/ledstrip.c index e96a5eabb..0f66cc02c 100644 --- a/src/main/io/ledstrip.c +++ b/src/main/io/ledstrip.c @@ -48,10 +48,10 @@ #include "io/ledstrip.h" static bool ledStripInitialised = false; +static bool ledStripEnabled = true; static failsafe_t* failsafe; -static bool ledStripEnabled = true; static void ledStripDisable(void); //#define USE_LED_ANIMATION @@ -745,12 +745,12 @@ void updateLedStrip(void) return; } - if ( IS_RC_MODE_ACTIVE(BOXLEDLOW)){ - if (ledStripEnabled){ - ledStripDisable(); + if (IS_RC_MODE_ACTIVE(BOXLEDLOW)) { + if (ledStripEnabled) { + ledStripDisable(); ledStripEnabled = false; } - }else{ + } else { ledStripEnabled = true; }