Skip to content

Commit

Permalink
warn about fuel pressure sensor instead of error #111 #117
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jun 23, 2023
1 parent ba51c44 commit d98e9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/controllers/algo/fuel/injector_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ expected<float> InjectorModel::getFuelDifferentialPressure() const {
- map.value_or(101.325);
case ICM_SensedRailPressure: {
if (!Sensor::hasSensor(SensorType::FuelPressureInjector)) {
firmwareError(ObdCode::OBD_PCM_Processor_Fault, "Fuel pressure compensation is set to use a pressure sensor, but none is configured.");
warning(ObdCode::OBD_Fuel_Pressure_Sensor_Missing, "Fuel pressure compensation is set to use a pressure sensor, but none is configured.");
return unexpected;
}

Expand Down
2 changes: 1 addition & 1 deletion firmware/controllers/algo/obd_error_codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ enum class ObdCode : uint16_t {
//P0087 Fuel Rail/System Pressure - Too Low
//P0088 Fuel Rail/System Pressure - Too High
//P0089 Fuel Pressure Regulator 1 Performance
//P0090 Fuel Pressure Regulator 1 Control Circuit
OBD_Fuel_Pressure_Sensor_Missing = 90,
//P0091 Fuel Pressure Regulator 1 Control Circuit Low
//P0092 Fuel Pressure Regulator 1 Control Circuit High
//P0093 Fuel System Leak Detected - Large Leak
Expand Down

0 comments on commit d98e9d1

Please sign in to comment.