Commit 5d857d29 authored by 高士达's avatar 高士达

Merge branch 'shihao' into 'develop'

🐞 fix: 修复首次上电未采集燃油阻值导致触发DTC

See merge request !36
parents 9260ecd5 45365ad7
......@@ -347,30 +347,42 @@ void AvgFuel_ConsOf100msUL_Set(uint16_t FuelCons)
uint8_t GET_Fuel_Sensor_Resistance_High(void)
{
if (GetFuelResistance() > 5150)
{
MinFuelData.Fuel_Sensor_Resistance_High = 1;
}
else
{
MinFuelData.Fuel_Sensor_Resistance_High = 0;
}
if( Common_GetIgnOnTime( ) <= SELF_CHECK_TIME)
{
return 0;
}
else
{
if (GetFuelResistance() > 5150)
{
MinFuelData.Fuel_Sensor_Resistance_High = 1;
}
else
{
MinFuelData.Fuel_Sensor_Resistance_High = 0;
}
}
return MinFuelData.Fuel_Sensor_Resistance_High;
}
uint8_t GET_Fuel_Sensor_Resistance_Low(void)
{
if(GetFuelResistance() <= 30)
if( Common_GetIgnOnTime( ) <= SELF_CHECK_TIME)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 1;
return 0;
}
else
{
MinFuelData.Fuel_Sensor_Resistance_Low = 0;
if(GetFuelResistance() <= 30)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 1;
}
else
{
MinFuelData.Fuel_Sensor_Resistance_Low = 0;
}
}
return MinFuelData.Fuel_Sensor_Resistance_Low;
return MinFuelData.Fuel_Sensor_Resistance_Low;
}
#endif
\ No newline at end of file
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