From bf1a539e448b20ea34d834b86d0e804bf931b842 Mon Sep 17 00:00:00 2001 From: yuquanjun Date: Thu, 17 Sep 2026 16:00:17 +0800 Subject: [PATCH] fix(led): restore all-green fret lights when leaving universal mode Nav-bar mode switches bypassed the legacy TAB path that called all-on green, so LOOP_LIGHT red LEDs stuck until reboot. Co-authored-by: Cursor --- UI/UI_Idle.c | 2 ++ UI/UI_global.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/UI/UI_Idle.c b/UI/UI_Idle.c index 4045b7c..04e3229 100644 --- a/UI/UI_Idle.c +++ b/UI/UI_Idle.c @@ -51,6 +51,8 @@ void UI_ReturnToModeSelect(void) StartFlag = 0; InModeFlag = false; AutoBandTop1_Stop(); + /* 长按回模式选择时,清掉万能 LOOP_LIGHT 残留红灯 */ + app_tm1629_all_on(LED_COLOR_G); CallUI_Idle(); UI_DrawModeSelectScreen(); } diff --git a/UI/UI_global.c b/UI/UI_global.c index 6cb729a..49f6fa1 100644 --- a/UI/UI_global.c +++ b/UI/UI_global.c @@ -1011,6 +1011,9 @@ void Draw_Bottom_Bar(uint8_t sel, uint8_t first_back) void UI_NavBar_Action(uint8_t value) { + /* 离开万能后 LOOP_LIGHT 停更,须显式恢复全绿(旧 GUI_TAB_INDEX 路径曾做) */ + app_tm1629_all_on(LED_COLOR_G); + switch (value) { case UI0902_NAV_UNIVERSAL: