From 462b0351efe4f5a2d34d708bed796fa38d6c12a0 Mon Sep 17 00:00:00 2001 From: 3djc <5167938+3djc@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:13:57 +0200 Subject: [PATCH] fix(firmware): turn off RGB leds at model unload (#7327) --- radio/src/storage/storage_common.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/radio/src/storage/storage_common.cpp b/radio/src/storage/storage_common.cpp index 1940dbd6d..ab9c77a29 100644 --- a/radio/src/storage/storage_common.cpp +++ b/radio/src/storage/storage_common.cpp @@ -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); }