Skip to content

Commit

Permalink
validate injectorStaging arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Jan 8, 2024
1 parent e7eafba commit e2ed1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/controllers/engine_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ bool validateConfig() {
ensureArrayIsAscending("TPS/TPS AE to", config->tpsTpsAccelToRpmBins);

ensureArrayIsAscendingOrDefault("TPS TPS RPM correction", engineConfiguration->tpsTspCorrValuesBins);

ensureArrayIsAscendingOrDefault("Staging Load", config->injectorStagingLoadBins);
ensureArrayIsAscendingOrDefault("Staging RPM", config->injectorStagingRpmBins);
}

// Ignition
Expand Down

0 comments on commit e2ed1d7

Please sign in to comment.