Commit 1cff1900 authored by 王金亮's avatar 王金亮

🐞 fix:56857 【豪进7500TFT】【绥化】【自检】请确认有车速时,按键是否响应

自检时不能操作按键,下电后,菜单重新回到初始界面
parent fda8cabd
...@@ -61,6 +61,7 @@ extern void AMT630H_GUI_SELFCHECK_STS_INIT(void); ...@@ -61,6 +61,7 @@ extern void AMT630H_GUI_SELFCHECK_STS_INIT(void);
extern uint8_t g_u8Display_Mode; extern uint8_t g_u8Display_Mode;
extern uint8_t g_u8Display_Mode_select; extern uint8_t g_u8Display_Mode_select;
extern uint8_t g_u8SelfCheck;
......
...@@ -385,6 +385,15 @@ void Get_DisTime_Service(void) ...@@ -385,6 +385,15 @@ void Get_DisTime_Service(void)
} }
void My_Key_Service(void)
{
/* 自检时不可操作按键 */
if(g_u8SelfCheck)
{
Key_Service();
}
}
uint8_t Get_Dis_Hour_Time(void) uint8_t Get_Dis_Hour_Time(void)
{ {
return MenuData.u8Dis_Hour; return MenuData.u8Dis_Hour;
......
...@@ -77,6 +77,8 @@ uint8_t Get_Dis_Bluetooth_Open_Close(void); ...@@ -77,6 +77,8 @@ uint8_t Get_Dis_Bluetooth_Open_Close(void);
uint8_t Get_Dis_Language(void); uint8_t Get_Dis_Language(void);
void Get_DisTime_Service(void); void Get_DisTime_Service(void);
extern void My_Key_Service(void);
#endif #endif
...@@ -136,6 +136,7 @@ static void Power_IG_ON_Init(void) ...@@ -136,6 +136,7 @@ static void Power_IG_ON_Init(void)
FaultCode_Init(); FaultCode_Init();
Amt630hInit(); Amt630hInit();
AMT630H_GUI_SELFCHECK_STS_INIT(); AMT630H_GUI_SELFCHECK_STS_INIT();
Menu_Service(MENU_KEY_TIMEOUT); /* 菜单回到初始界面 */
} }
static void Power_Sleep_Init(void) static void Power_Sleep_Init(void)
......
...@@ -35,7 +35,7 @@ void Sys_10ms_Tasks(void) ...@@ -35,7 +35,7 @@ void Sys_10ms_Tasks(void)
{ {
FaultCode_Service(10u); FaultCode_Service(10u);
Line_In_Debounce_Service(10u); Line_In_Debounce_Service(10u);
Key_Service(); My_Key_Service();
Data_Mileage_Write_EEPROM(); Data_Mileage_Write_EEPROM();
Key_Clear_Time(); Key_Clear_Time();
Key_TimeOut_Service(); Key_TimeOut_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