Commit 99d830df authored by 李俭双's avatar 李俭双

🐞 fix:代码评审问题:修改按键超时时间的清除方式,放到按键动作里清时间,不使用判断硬线信号的方式

parent 8d853941
......@@ -32,14 +32,14 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
{
Key_Left_Short_Press();
}
Key_Clear_Time();
break;
case KEY_EVENT_SHORT_PRESS_2://3-5s
if (Common_GetIgnOnTime() >= 3000)
{
Key_Left_Long_Press();
}
Key_Clear_Time();
break;
case KEY_EVENT_LONG_PRESS_1: //7
break;
......@@ -86,7 +86,7 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
TYW_RESET_ODO();
}
Key_Clear_Time();
break;
case KEY_EVENT_OFF_TO_ON:
break;
......@@ -224,7 +224,7 @@ void KEY_LEFT_EVENT_NONE_Service(void)
void Key_Clear_Time(void)
{
if(Key_Status_Read_Left() == KEY_REALTIME_PRESS)
//if(Key_Status_Read_Left() == KEY_REALTIME_PRESS)
{
MenuInfor.Back_Time_Left = 0;
MenuInfor.Back_Time_Left_Flag = 0;
......
......@@ -62,7 +62,7 @@ void Sys_10ms_Tasks(void)
void Sys_20ms_Tasks(void)
{
Key_Clear_Time();
//Key_Clear_Time();
Key_Auto_Save();
Data_Vehicle_Speed_Processing_Service();
Data_Engine_Speed_Processing_Service();
......
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