Skip to content

Commit

Permalink
verify fuel level bins are ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Oct 2, 2024
1 parent 27e9dff commit 6b1beb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firmware/controllers/engine_controller.cpp
Original file line number Diff line number Diff line change
@@ -553,6 +553,10 @@ bool validateConfig() {

ensureArrayIsAscending("MAF transfer function", config->mafDecodingBins);

if (isAdcChannelValid(engineConfiguration->fuelLevelSensor)) {
ensureArrayIsAscending("Fuel level curve", config->fuelLevelBins);
}

// Cranking tables
ensureArrayIsAscending("Cranking fuel mult", config->crankingFuelBins);
ensureArrayIsAscending("Cranking duration", config->crankingCycleBins);

0 comments on commit 6b1beb6

Please sign in to comment.