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 <cursoragent@cursor.com>
This commit is contained in:
parent
a3898dc9ae
commit
91b33a4515
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue