Commit 9af842f6 authored by 李俭双's avatar 李俭双

🐞 fix:44590 【天鹰TY100】【按键】自检期间响应按键

parent a3e20da7
......@@ -20,10 +20,18 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
switch (enKeyEvent)
{
case KEY_EVENT_SHORT_PRESS_1://1s
Key_Left_Short_Press();
if (Common_GetIgnOnTime() >= 3000)
{
Key_Left_Short_Press();
}
break;
case KEY_EVENT_SHORT_PRESS_2://3-5s
Key_Left_Long_Press();
if (Common_GetIgnOnTime() >= 3000)
{
Key_Left_Long_Press();
}
break;
case KEY_EVENT_LONG_PRESS_1: //7
break;
......@@ -32,26 +40,30 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//Mode
case KEY_EVENT_LONG_PRESS_3: //9s
break;
case KEY_EVENT_LONG_PRESS_4: //10s
Maintain_Reset_Service();
if((PageMenu == Page_TCS) && (PageType == Page_Menu))
if (Common_GetIgnOnTime() >= 3000)
{
if(Get_Dis_Tcs_Val() == 0)
Maintain_Reset_Service();
if((PageMenu == Page_TCS) && (PageType == Page_Menu))
{
MenuData.Tcs_Val = 1;//on
if(Get_Dis_Tcs_Val() == 0)
{
MenuData.Tcs_Val = 1;//on
}
else
{
MenuData.Tcs_Val = 0;//off
}
}
else
if((PageMenu == Page_Trip) && (PageType == Page_Menu))
{
MenuData.Tcs_Val = 0;//off
Data_Clear_Trip_All();
}
TYW_RESET_ODO();
}
if((PageMenu == Page_Trip) && (PageType == Page_Menu))
{
Data_Clear_Trip_All();
}
TYW_RESET_ODO();
break;
case KEY_EVENT_OFF_TO_ON:
break;
......
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