Commit 7e169e05 authored by 梁百峰's avatar 梁百峰

🐞 fix:128505 菜单修改声音后,休眠唤醒声音大小未保存

增加唤醒后设置音量,修改设置音量等级条件
parent 2b76588f
......@@ -182,6 +182,7 @@ void PoMa_Wakeup_Init(void)
Line_In_KL15_ON_Init( );
COM_CAN_Init( );
Display_Ctrl_Init( );
Buzzer_Volume_Set(MenuData.Sound );
}
void PoMa_Sleep_Init(void)
{
......
......@@ -23,7 +23,7 @@ Buzzer_Operate_Type_en_t Buzzer_Positive_Handle_Operate(Buzzer_uint8_t u8BuzzerO
{
switch (BuzzerVolume)
{
default:
// default:
case 3:
Buzzer_CT_X1_OUT = 1U;
Buzzer_CT_X2_OUT = 0U;
......@@ -39,6 +39,8 @@ Buzzer_Operate_Type_en_t Buzzer_Positive_Handle_Operate(Buzzer_uint8_t u8BuzzerO
Buzzer_CT_X2_OUT = 0U;
Buzzer_CT_X3_OUT = 1U;
break;
default:
break;
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment