fix(power): reset performance state (KEY_ID_1629/PressFlag/StartFlag) on power-on after soft-off
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dc5b7f4391
commit
064fabf249
|
|
@ -209,6 +209,10 @@ static void PowerOff_EmergencyReset(void)
|
|||
void System_PowerOn(void)
|
||||
{
|
||||
LOG_I("PWR", "power_on begin");
|
||||
/* 软关机不复位 MCU:清掉上次会话的演奏状态,保证开机拨片走当前调一级兜底 */
|
||||
KEY_ID_1629 = 0;
|
||||
PressFlag = 0;
|
||||
StartFlag = 0;
|
||||
s_pwr_rails_cut = 0u;
|
||||
s_pwr_off_grace_ms = 0u;
|
||||
/* 本次长按已用于开机:先消耗,再置 powon,防止 TMR7 ISR 把同一按压力即判为关机 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue