fix: clean led behaviour on shutdown (#6324)

Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
Raphael Coeffic
2025-05-30 13:35:03 +10:00
committed by GitHub
co-authored by 3djc
parent 2da833f757
commit f0056e2dea
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -249,6 +249,11 @@ extern void rtcDisableBackupReg();
void boardOff()
{
#if defined(LED_STRIP_GPIO) && !defined(BOOT)
rgbLedStop();
rgbLedClearAll();
#endif
ledOff();
backlightEnable(0);
+5
View File
@@ -260,6 +260,11 @@ void boardInit()
void boardOff()
{
#if defined(LED_STRIP_GPIO) && !defined(BOOT)
rgbLedStop();
rgbLedClearAll();
#endif
#if defined(STATUS_LEDS) && !defined(BOOT)
ledOff();
#endif