Commit 73c5f990 authored by 时昊's avatar 时昊

feat:增加时间设置超过最大值,显示最大值

parent f035c196
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include "Components.h" #include "Components.h"
//#include "CommonInterface.h" //#include "CommonInterface.h"
#include "RTE.h" #include "RTE.h"
extern RTC_CounterTypeDef counter_val;
extern _Menu_Data MenuData;
void Sys_Pseudo_Real_Time_Tasks(void) void Sys_Pseudo_Real_Time_Tasks(void)
{ {
...@@ -45,10 +47,25 @@ void Sys_50ms_Tasks(void) ...@@ -45,10 +47,25 @@ void Sys_50ms_Tasks(void)
{ {
Telltales_Management(); Telltales_Management();
g_u8Cursor_Posittion = Menu_Get_Current_Cursor_Information(); g_u8Cursor_Posittion = Menu_Get_Current_Cursor_Information();
if((MenuData.Dis_Hour_Tenb*10 + MenuData.Dis_Hour_Bit) > 23)
{
MenuData.Dis_Hour_Tenb = 2;
MenuData.Dis_Hour_Bit = 3;
}
if((MenuData.Dis_Minute_Tenb*10 + MenuData.Dis_Minute_Bit) > 59)
{
MenuData.Dis_Minute_Tenb = 5;
MenuData.Dis_Minute_Bit = 9;
}
} }
uint32_t ODOtest = 0; uint32_t ODOtest = 0;
uint32_t Triptest = 0; uint32_t Triptest = 0;
uint32_t aaa = 0;
void Sys_100ms_Tasks(void) void Sys_100ms_Tasks(void)
{ {
ODOtest = Data_ODO_Read(); ODOtest = Data_ODO_Read();
...@@ -58,7 +75,9 @@ void Sys_100ms_Tasks(void) ...@@ -58,7 +75,9 @@ void Sys_100ms_Tasks(void)
Coolant_Cal_Sevice(100u); Coolant_Cal_Sevice(100u);
Services_Mileage_Callback(); Services_Mileage_Callback();
RTE_GPIO_Config(RTE_GPIO_PORT05_PIN04, GpioOut_High); RTE_GPIO_Config(RTE_GPIO_PORT05_PIN04, GpioOut_High);
// aaa = Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO);
} }
static uint16_t task_2ms = 0u; static uint16_t task_2ms = 0u;
void Sys_Exact_50us_Tasks(void) void Sys_Exact_50us_Tasks(void)
......
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