Commit d9d80769 authored by 李俭双's avatar 李俭双

feat:完善显示逻辑

parent 0afdb47e
...@@ -66,6 +66,7 @@ void Clear_Bu98(void) ...@@ -66,6 +66,7 @@ void Clear_Bu98(void)
void Gauge_Service(void) void Gauge_Service(void)
{ {
static uint16_t VSpeed_Count = 0u; static uint16_t VSpeed_Count = 0u;
uint32_t i = 0;
if (ClearODO_Flag == 1) if (ClearODO_Flag == 1)
{ {
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON ) if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
...@@ -83,6 +84,12 @@ void Gauge_Service(void) ...@@ -83,6 +84,12 @@ void Gauge_Service(void)
{ {
if (Common_GetIgnOnTime() >= 3000) if (Common_GetIgnOnTime() >= 3000)
{ {
//for(i = 0; i < BU98R10_DDRAM_SIZE; i ++)
//{
// BU98R10Chip0DDRAM.Byte[i] = 1;
// BU98R10Chip1DDRAM.Byte[i] = 1;
//}
i = Get_Trip_Value();
if (VSpeed_Count < 3) if (VSpeed_Count < 3)
{ {
VSpeed_Count++; VSpeed_Count++;
......
...@@ -14,7 +14,7 @@ typedef enum ...@@ -14,7 +14,7 @@ typedef enum
em_SEG_Bluetooth, em_SEG_Bluetooth,
em_SEG_TCS, em_SEG_TCS,
em_SEG_Auto_Start_Stop, em_SEG_Auto_Start_Stop,
em_SEG_Keys, //em_SEG_Keys,
em_SEG_Upkeep, em_SEG_Upkeep,
em_SEG_Low_Batt_Vol, em_SEG_Low_Batt_Vol,
em_SEG_Lateral_Strut, em_SEG_Lateral_Strut,
...@@ -31,7 +31,7 @@ typedef enum ...@@ -31,7 +31,7 @@ typedef enum
void SEG_SET_DTC_NUM(uint16_t num); void SEG_SET_DTC_NUM(uint32_t num);
void SEG_SET_LED_STS(uint8_t LED_NUM, uint8_t m_Flag); void SEG_SET_LED_STS(uint8_t LED_NUM, uint8_t m_Flag);
void SEG_SET_FuelDial(uint8_t m_Flag, uint8_t m_SEG); void SEG_SET_FuelDial(uint8_t m_Flag, uint8_t m_SEG);
void SEG_SET_EspeedDial(uint8_t m_Flag, uint8_t m_SEG); void SEG_SET_EspeedDial(uint8_t m_Flag, uint8_t m_SEG);
......
...@@ -158,7 +158,7 @@ void Key_Wakeup_Init_EXample(void) ...@@ -158,7 +158,7 @@ void Key_Wakeup_Init_EXample(void)
void KEY_LEFT_EVENT_NONE_Service(void) void KEY_LEFT_EVENT_NONE_Service(void)
{ {
MenuInfor.Back_Time_Left++; MenuInfor.Back_Time_Left++;
if(MenuInfor.Back_Time_Left > BACK_MENU_TIME) if((MenuInfor.Back_Time_Left > BACK_MENU_TIME) &&(PageType != Page_DTC))
{ {
MenuInfor.Back_Time_Left = BACK_MENU_TIME; MenuInfor.Back_Time_Left = BACK_MENU_TIME;
MenuInfor.Back_Time_Left_Flag = 1; MenuInfor.Back_Time_Left_Flag = 1;
......
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