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

Merge branch 'shihao' into 'develop'

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

See merge request !36
parents 9260ecd5 45365ad7
......@@ -347,6 +347,12 @@ void AvgFuel_ConsOf100msUL_Set(uint16_t FuelCons)
uint8_t GET_Fuel_Sensor_Resistance_High(void)
{
if( Common_GetIgnOnTime( ) <= SELF_CHECK_TIME)
{
return 0;
}
else
{
if (GetFuelResistance() > 5150)
{
MinFuelData.Fuel_Sensor_Resistance_High = 1;
......@@ -355,13 +361,18 @@ uint8_t GET_Fuel_Sensor_Resistance_High(void)
{
MinFuelData.Fuel_Sensor_Resistance_High = 0;
}
}
return MinFuelData.Fuel_Sensor_Resistance_High;
}
uint8_t GET_Fuel_Sensor_Resistance_Low(void)
{
if( Common_GetIgnOnTime( ) <= SELF_CHECK_TIME)
{
return 0;
}
else
{
if(GetFuelResistance() <= 30)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 1;
......@@ -370,6 +381,7 @@ uint8_t GET_Fuel_Sensor_Resistance_Low(void)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 0;
}
}
return MinFuelData.Fuel_Sensor_Resistance_Low;
}
......
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