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

🐞 fix:56474 【豪进7500TFT】【时间】(白天模式)进入时间设置中,短按“SELECT”按键,小时位23和24反复切换

在时钟十位为2的时候,个位最大为3,超过3为0
parent 96329a20
...@@ -412,7 +412,14 @@ void Menu_Logic_Operation_Clock_Hour_Bit_Set(Menu_Key_en_t enKeyType) ...@@ -412,7 +412,14 @@ void Menu_Logic_Operation_Clock_Hour_Bit_Set(Menu_Key_en_t enKeyType)
if(enKeyType == MENU_KEY_DOWN_SHORT) if(enKeyType == MENU_KEY_DOWN_SHORT)
{ {
updataDir = 1; updataDir = 1;
datmax = 9u; if(MenuData.Dis_Hour_Tenb == 2)
{
datmax = 3u;
}
else
{
datmax = 9u;
}
datmin = 0u; datmin = 0u;
Menu_u8Data_Updata_Process(updataDir, datmax, datmin, 1u, (uint8_t*)&(MenuData.Dis_Hour_Bit)); Menu_u8Data_Updata_Process(updataDir, datmax, datmin, 1u, (uint8_t*)&(MenuData.Dis_Hour_Bit));
} }
......
...@@ -62,7 +62,7 @@ void Sys_50ms_Tasks(void) ...@@ -62,7 +62,7 @@ void Sys_50ms_Tasks(void)
if((MenuData.Dis_Hour_Tenb*10 + MenuData.Dis_Hour_Bit) > 23) if((MenuData.Dis_Hour_Tenb*10 + MenuData.Dis_Hour_Bit) > 23)
{ {
MenuData.Dis_Hour_Tenb = 2; MenuData.Dis_Hour_Tenb = 2;
MenuData.Dis_Hour_Bit = 3; MenuData.Dis_Hour_Bit = 0;
} }
if((MenuData.Dis_Minute_Tenb*10 + MenuData.Dis_Minute_Bit) > 59) if((MenuData.Dis_Minute_Tenb*10 + MenuData.Dis_Minute_Bit) > 59)
......
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