Commit 787e1778 authored by 李俭双's avatar 李俭双

🐞 fix:更改水温上电和无效到有效情况立即指示到位

parent c0c740ea
......@@ -287,6 +287,8 @@ void Data_Coolant_Temp_Display ( void )
DataCoolantTemp_Dis.u8_CurSeg = 0;
DataCoolantTemp_Dis.u8_DestSeg = 0 ;
DataCoolantTemp_Dis.u8_Flg = 0;
u32ColCurNum = DataCoolantTemp.Value * 100 ;
DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer;
}
else
{
......@@ -303,6 +305,8 @@ void Data_Coolant_Temp_Display ( void )
DataCoolantTemp_Dis.u8_CurSeg = DataCoolantTemp_Dis.u8_DestSeg;
DataCoolantTemp_Dis.u8_UpFlashtimer = DataCoolantTemp_Dis.u8_Uptimer;
DataCoolantTemp_Dis.u8_DownFlashtimer = DataCoolantTemp_Dis.u8_Downtimer;
u32ColCurNum = DataCoolantTemp.Value * 100;
DataCoolantTemp_Dis.u8_Holdtimer = CoolantFlashtimer;
}
else
{
......@@ -311,7 +315,8 @@ void Data_Coolant_Temp_Display ( void )
}
}
if (Common_GetIgnOnTime() >= 3030)
{
if(DataCoolantTemp_Dis.u8_CurSeg > DataCoolantTemp_Dis.u8_DestSeg )
{
u32ColCurNum = Data_Coolant_Cal_Num(DataCoolantTemp_Dis.u8_CurSeg, 0, (DataCoolantTemp_Dis.u8_Downtimer - DataCoolantTemp_Dis.u8_DownFlashtimer), u32ColCurNum, DataCoolantTemp.Value*100);
......@@ -347,8 +352,19 @@ void Data_Coolant_Temp_Display ( void )
}
/*目标格和当前格一致时,数显如何处理*/
/*5S后更新为目标数值*/
u32ColCurNum = Data_Coolant_Cal_Num(DataCoolantTemp_Dis.u8_CurSeg, 2, (CoolantFlashtimer-DataCoolantTemp_Dis.u8_Holdtimer ), u32ColCurNum, DataCoolantTemp.Value*100);
}
}
else
{
u32ColCurNum = DataCoolantTemp.Value * 100;
}
// warning
......
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