Commit af651631 authored by 梁百峰's avatar 梁百峰

feat:修改触发燃油DTC故障阻值

parent c7cde5c9
......@@ -173,14 +173,6 @@ void ExecFuel(void)
MinFuelData.Step_Get_Valid = 1;
MinFuelData.Step_Get_Value = GetFuelStep();
MinFuelData.Res_Pre_Get = GetFuelResistance(); // zu zhi
if(GetFuelResistance() > 2650)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 1;
}
else
{
MinFuelData.Fuel_Sensor_Resistance_Low = 0;
}
//if (Line_In_Get_Status(LINE_IN_Block_Diesel_Filter) == 1u)
//{
// MinFuelData.Fuel_Sensor_Resistance_High = 1;
......@@ -363,11 +355,21 @@ 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(GetFuelResistance() <= 30)
{
MinFuelData.Fuel_Sensor_Resistance_Low = 1;
}
else
{
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