fix(firmware): turn off RGB leds at model unload (#7327)
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
#include "mixes.h"
|
||||
#include "switches.h"
|
||||
|
||||
#if defined(FUNCTION_SWITCHES_RGB_LEDS)
|
||||
#include "hal/rgbleds.h"
|
||||
#endif
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#include "view_main.h"
|
||||
#endif
|
||||
@@ -74,6 +78,10 @@ void preModelLoad()
|
||||
|
||||
stopTrainer();
|
||||
|
||||
#if defined(FUNCTION_SWITCHES_RGB_LEDS)
|
||||
turnOffRGBLeds();
|
||||
#endif
|
||||
|
||||
if (needDelay) {
|
||||
sleep_ms(200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user