Commit ba68a490 authored by 陈家乐's avatar 陈家乐

🐞 fix:61530 水温表显示有误

parent 7d29024b
...@@ -345,18 +345,26 @@ void Data_Coolant_Temp_Display ( void ) ...@@ -345,18 +345,26 @@ void Data_Coolant_Temp_Display ( void )
{ {
DataCoolantTemp_Dis.u8_DownFlashtimer = 0; DataCoolantTemp_Dis.u8_DownFlashtimer = 0;
DataCoolantTemp_Dis.u8_UpFlashtimer = 0; DataCoolantTemp_Dis.u8_UpFlashtimer = 0;
DataCoolantTemp_Dis.u8_Holdtimer++; DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer;//++;
if (DataCoolantTemp_Dis.u8_Holdtimer >= CoolantFlashtimer) // if (DataCoolantTemp_Dis.u8_Holdtimer >= CoolantFlashtimer)
{ // {
DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer; // DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer;
} // }
/*目标格和当前格一致时,数显如何处理*/ /*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/ /*5S后更新为目标数值*/
u32ColCurNum = Data_Coolant_Cal_Num(DataCoolantTemp_Dis.u8_CurSeg, 2, (CoolantFlashtimer-DataCoolantTemp_Dis.u8_Holdtimer ), u32ColCurNum, DataCoolantTemp.Value*100); u32ColCurNum = Data_Coolant_Cal_Num(DataCoolantTemp_Dis.u8_CurSeg, 2, (CoolantFlashtimer-DataCoolantTemp_Dis.u8_Holdtimer ), u32ColCurNum, DataCoolantTemp.Value*100);
// if(u32ColCurNum < DataCoolantTemp.Value*100)
// {
// u32ColCurNum += 100;
// }
// else if (u32ColCurNum > DataCoolantTemp.Value*100)
// {
// u32ColCurNum -= 100;
// }
// else
// {
// u32ColCurNum = DataCoolantTemp.Value*100;
// }
} }
} }
......
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