From 91b33a45158c63b6e1aa27aa999f6ff6096458fb Mon Sep 17 00:00:00 2001 From: yuquanjun Date: Thu, 24 Sep 2026 20:43:11 +0800 Subject: [PATCH] fix(boot): end startup LED on green; reset idle timer on mixer touch Boot color sequence last frame was cyan; use mode-select green instead. Mixer fader drag returned before ResetAutoPowerCount, so sliding volume could still hit auto power-off. Co-authored-by: Cursor --- UI/UI_Idle.c | 4 ++-- UI/UI_Mixer.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/UI_Idle.c b/UI/UI_Idle.c index 52dbbfd..d79a91e 100644 --- a/UI/UI_Idle.c +++ b/UI/UI_Idle.c @@ -2,14 +2,14 @@ uint8_t CurrentMode = 0; -/* 样机「开机彩灯」:侧灯全亮色序 蓝→青→红→青(末态保持青) */ +/* 样机「开机彩灯」:侧灯全亮色序 蓝→青→红→绿(末态与模式切换同色绿) */ void UI_BootLedShow(void) { static const LedColor_TypeDef seq[] = { LED_COLOR_B, LED_COLOR_CYA, LED_COLOR_R, - LED_COLOR_CYA, + LED_COLOR_G, }; static const uint16_t hold_ms[] = { 400, 300, 400, 0 }; uint8_t i; diff --git a/UI/UI_Mixer.c b/UI/UI_Mixer.c index d4af8f9..28005cd 100644 --- a/UI/UI_Mixer.c +++ b/UI/UI_Mixer.c @@ -218,6 +218,8 @@ void UI_Mixer_Process(DisplayTaskMessage_Type msg) switch(msg.MessageType) { case MSG_ID_TOUCH: + /* 推子拖动会 early-return:须先复位,否则调音台操作无法打断自动关机 */ + ResetAutoPowerCount(); tx = msg.HiByte; ty = msg.LoByte; /* ID=0:抬起,解开推子锁定 */ @@ -255,7 +257,6 @@ void UI_Mixer_Process(DisplayTaskMessage_Type msg) break; } } - ResetAutoPowerCount(); break; case MSG_ID_EC_VOL: