Commit ee17ac09 authored by 李冠华's avatar 李冠华

🐞 fix:修改自检燃油段码走到8格后会闪一下0格的问题

parent e1c1a0dd
......@@ -2791,6 +2791,10 @@ void Check_SEG_Display(void)
uint8_t Fuel = 0;
uint32_t fau_code = Checkself_num * 1111;
Fuel = Checkself_SEG_step / 5u;
if(Fuel >= 8U)
{
Fuel = 8U;
}
SEG_SET_FuelDial(1, Fuel);
SEG_SET_Fault_Code(1, fau_code, 1);
SEG_SET_Fault_Code_Spanner(1, 1, 0);
......@@ -2880,6 +2884,10 @@ void Checkself_SEG_Display(void)
uint8_t Fuel = 0;
uint32_t fau_code = Checkself_num * 1111;
Fuel = Checkself_SEG_step / 5u;
if(Fuel >= 8U)
{
Fuel = 8U;
}
SEG_SET_FuelDial(1, Fuel);
SEG_SET_Fault_Code(1, fau_code, 1);
SEG_SET_Fault_Code_Spanner(1, 1, 0);
......
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