Commit db3890cf authored by 时昊's avatar 时昊

feat:修改瞬时油耗2s更新一次

parent 184f1c56
......@@ -1067,23 +1067,23 @@ void Data_Instantaneous_Fuel_Display_Service(void)
{
if(Data_InsFuel.Valid)
{
if(Data_InsFuel.Value_Last != Data_InsFuel.Value)
{
Data_InsFuel.FreshTime = 0;
Data_InsFuel.Value_Last = Data_InsFuel.Value;
}
// if(Data_InsFuel.Value_Last != Data_InsFuel.Value)
// {
// Data_InsFuel.FreshTime = 0;
// Data_InsFuel.Value_Last = Data_InsFuel.Value;
// }
if(Data_InsFuel.V_Speed_backup != Common_Get_Act_V_Speed( ))
{
if((Common_Get_Act_V_Speed( ) >= 50)&&(Data_InsFuel.V_Speed_backup < 50))
{
Data_InsFuel.FreshTime = 0;
//Data_InsFuel.FreshTime = 0;
Data_InsFuel.Display_Flag = 1;
}
if((Common_Get_Act_V_Speed( ) < 50)&&(Data_InsFuel.V_Speed_backup >= 50))
{
Data_InsFuel.FreshTime = 0;
//Data_InsFuel.FreshTime = 0;
Data_InsFuel.Display_Flag = 0;
}
Data_InsFuel.V_Speed_backup = Common_Get_Act_V_Speed( );
......
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