it has been almost two years we cannot be compatible forever

This commit is contained in:
rusefi 2022-11-13 20:05:04 -05:00
parent eaf1cdf717
commit 66f8d0e8f8
1 changed files with 4 additions and 2 deletions

View File

@ -30,8 +30,9 @@ float FuelComputer::getStoichiometricRatio() const {
// Config compatibility: this field may be zero on ECUs with old defaults // Config compatibility: this field may be zero on ECUs with old defaults
if (primary < 5) { if (primary < 5) {
// todo: fatal in July of 2023
// 14.7 = E0 gasoline AFR // 14.7 = E0 gasoline AFR
primary = STOICH_RATIO; engineConfiguration->stoichRatioPrimary = primary = STOICH_RATIO;
} }
// Without an ethanol/flex sensor, return primary configured 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 // Config compatibility: this field may be zero on ECUs with old defaults
if (secondary < 5) { if (secondary < 5) {
// 9.0 = E100 ethanol AFR // 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); auto flex = Sensor::get(SensorType::FuelEthanolPercent);