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