Commit 82041e3c authored by 李俭双's avatar 李俭双

🐞 fix:43555,43559,清大计扫表点亮所有背景灯,重上15电继续扫表

parent aff317b6
...@@ -66,16 +66,38 @@ void Clear_Bu98(void) ...@@ -66,16 +66,38 @@ void Clear_Bu98(void)
void Gauge_Service(void) void Gauge_Service(void)
{ {
static uint16_t VSpeed_Count = 0u; static uint16_t VSpeed_Count = 0u;
uint8_t k = 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 )
{ {
Check_SEG_Display(); Check_SEG_Display();
for(k = 0; k < LampCh0_MAX; k ++)
{
if (k == 24)
{
k ++;
}
else
{
LED_Driver_Channel_Set(LampChannel_0, k, LED_ON);
}
}
} }
else else
{ {
Clear_Bu98(); Clear_Bu98();
for(k = 0; k < LampCh0_MAX; k ++)
{
LED_Driver_Channel_Set(LampChannel_0, k, LED_OFF);
}
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_35_ODO, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_34_TRIP, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Screen_Time, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_KMH, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_MPH, LED_OFF);
} }
} }
else else
......
...@@ -1137,11 +1137,45 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM) ...@@ -1137,11 +1137,45 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM)
if(m_Flag) if(m_Flag)
{ {
IC1_SEG079 = IC_SEG_ON; IC1_SEG079 = IC_SEG_ON;
IC1_SEG086 = IC_SEG_ON; IC1_SEG086 = IC_SEG_ON;
if(Get_Battery_Voltage_Valid() == 1) if((Get_Battery_Voltage_Valid() != 1)&&(ClearODO_Flag != 1)&&(Common_GetIgnOnTime() > 3000))
{
IC1_SEG088 = IC_SEG_ON;
IC1_SEG081 = IC_SEG_ON;
IC1_SEG096 = IC_SEG_OFF;
IC1_SEG095 = IC_SEG_OFF;
IC1_SEG093 = IC_SEG_OFF;
IC1_SEG099 = IC_SEG_OFF;
IC1_SEG098 = IC_SEG_OFF;
IC1_SEG097 = IC_SEG_OFF;
IC1_SEG094 = IC_SEG_OFF;
IC1_SEG090 = IC_SEG_OFF;
IC1_SEG089 = IC_SEG_OFF;
IC1_SEG087 = IC_SEG_OFF;
IC1_SEG100 = IC_SEG_OFF;
IC1_SEG092 = IC_SEG_OFF;
IC1_SEG091 = IC_SEG_OFF;
IC1_SEG083 = IC_SEG_OFF;
IC1_SEG082 = IC_SEG_OFF;
IC1_SEG080 = IC_SEG_OFF;
IC1_SEG101 = IC_SEG_OFF;
IC1_SEG085 = IC_SEG_OFF;
IC1_SEG084 = IC_SEG_OFF;
}
else
{ {
Num = m_NUM / 100; Num = m_NUM / 100;
m8 = SEG_UNDISPLAY_NUMBER0[Num]; if((ClearODO_Flag == 1) || (Common_GetIgnOnTime() <= 3000))
{
m8 = SEG_DISPLAY_NUMBER0[Num];
}
else
{
m8 = SEG_UNDISPLAY_NUMBER0[Num];
}
if (Bit_Is_Set(m8, 0)) if (Bit_Is_Set(m8, 0))
{ {
...@@ -1324,33 +1358,7 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM) ...@@ -1324,33 +1358,7 @@ void SEG_SET_Voltage_NUM(uint8_t m_Flag, uint16_t m_NUM)
{ {
IC1_SEG081 = IC_SEG_OFF; IC1_SEG081 = IC_SEG_OFF;
} }
} }
else
{
IC1_SEG088 = IC_SEG_ON;
IC1_SEG081 = IC_SEG_ON;
IC1_SEG096 = IC_SEG_OFF;
IC1_SEG095 = IC_SEG_OFF;
IC1_SEG093 = IC_SEG_OFF;
IC1_SEG099 = IC_SEG_OFF;
IC1_SEG098 = IC_SEG_OFF;
IC1_SEG097 = IC_SEG_OFF;
IC1_SEG094 = IC_SEG_OFF;
IC1_SEG090 = IC_SEG_OFF;
IC1_SEG089 = IC_SEG_OFF;
IC1_SEG087 = IC_SEG_OFF;
IC1_SEG100 = IC_SEG_OFF;
IC1_SEG092 = IC_SEG_OFF;
IC1_SEG091 = IC_SEG_OFF;
IC1_SEG083 = IC_SEG_OFF;
IC1_SEG082 = IC_SEG_OFF;
IC1_SEG080 = IC_SEG_OFF;
IC1_SEG101 = IC_SEG_OFF;
IC1_SEG085 = IC_SEG_OFF;
IC1_SEG084 = IC_SEG_OFF;
}
} }
......
...@@ -404,10 +404,7 @@ void TYW_RESET_ODO(void) ...@@ -404,10 +404,7 @@ void TYW_RESET_ODO(void)
} }
} }
} }
else
{
ClearODO_Flag = 0;
}
} }
void Maintain_Reset_Service(void) void Maintain_Reset_Service(void)
......
...@@ -143,8 +143,7 @@ static void Power_IG_OFF_Init(void) ...@@ -143,8 +143,7 @@ static void Power_IG_OFF_Init(void)
} }
static void Power_IG_ON_Init(void) static void Power_IG_ON_Init(void)
{ {
ClearODO_Flag = 0;
Checkself_Init(); Checkself_Init();
Line_In_KL15_ON_Init(); Line_In_KL15_ON_Init();
Telltales_KL15_Init(); Telltales_KL15_Init();
......
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