Commit 9d5b7caf authored by 李俭双's avatar 李俭双

🐞 fix:解决上电自检看不到数字0的问题

parent 787e1778
...@@ -104,7 +104,7 @@ void Gauge_Service(void) ...@@ -104,7 +104,7 @@ void Gauge_Service(void)
{ {
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON ) if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
{ {
if (Common_GetIgnOnTime() >= 3000) if (Common_GetIgnOnTime() >= 3030)
{ {
//for(i = 0; i < BU98R10_DDRAM_SIZE; i ++) //for(i = 0; i < BU98R10_DDRAM_SIZE; i ++)
//{ //{
......
...@@ -4574,6 +4574,8 @@ void Checkself_SEG_Display(void) ...@@ -4574,6 +4574,8 @@ void Checkself_SEG_Display(void)
// BU98R10Chip1DDRAM.Byte[i] = 1; // BU98R10Chip1DDRAM.Byte[i] = 1;
// } // }
#if (1) #if (1)
if (Common_GetIgnOnTime() >= 30)
{
if (Checkself_SEG_step_count < 60) if (Checkself_SEG_step_count < 60)
{ {
Checkself_SEG_step_count++; Checkself_SEG_step_count++;
...@@ -4598,6 +4600,8 @@ void Checkself_SEG_Display(void) ...@@ -4598,6 +4600,8 @@ void Checkself_SEG_Display(void)
Checkself_SEG_step--; Checkself_SEG_step--;
} }
} }
}
Mileage = ((Checkself_SEG_step / 3) * 111100); Mileage = ((Checkself_SEG_step / 3) * 111100);
Fuel = Checkself_SEG_step / 5u; Fuel = Checkself_SEG_step / 5u;
collant = 100 + ((Checkself_SEG_step / 3) * 11); collant = 100 + ((Checkself_SEG_step / 3) * 11);
......
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