From 66f8d0e8f813721c3391ef6d0aca5e64ea1658d6 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 13 Nov 2022 20:05:04 -0500 Subject: [PATCH] it has been almost two years we cannot be compatible forever --- firmware/controllers/algo/fuel/fuel_computer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);