fix(firmware): turn off RGB leds at model unload (#7327)

This commit is contained in:
3djc
2026-04-29 18:13:57 +10:00
committed by GitHub
parent 29170d20c5
commit 462b0351ef
+8
View File
@@ -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);
}