diff --git a/firmware/controllers/algo/fuel/fuel_computer.cpp b/firmware/controllers/algo/fuel/fuel_computer.cpp index 579e38cd65..978ee94915 100644 --- a/firmware/controllers/algo/fuel/fuel_computer.cpp +++ b/firmware/controllers/algo/fuel/fuel_computer.cpp @@ -30,8 +30,9 @@ float FuelComputer::getStoichiometricRatio() const { // Config compatibility: this field may be zero on ECUs with old defaults if (primary < 5) { + // todo: fatal in July of 2023 // 14.7 = E0 gasoline AFR - primary = STOICH_RATIO; + engineConfiguration->stoichRatioPrimary = primary = STOICH_RATIO; } // Without an ethanol/flex sensor, return primary configured stoich ratio @@ -44,7 +45,8 @@ float FuelComputer::getStoichiometricRatio() const { // Config compatibility: this field may be zero on ECUs with old defaults if (secondary < 5) { // 9.0 = E100 ethanol AFR - secondary = 9.0f; + // todo: fatal in July of 2023 + engineConfiguration->stoichRatioSecondary = secondary = 9.0f; } auto flex = Sensor::get(SensorType::FuelEthanolPercent);