Skip to content

Commit

Permalink
fix knock retard table init
Browse files Browse the repository at this point in the history
column and row definition were swapped w/re: value lookup

fixes FOME-Tech#246, FOME-Tech#417
  • Loading branch information
nmschulte committed May 2, 2024
1 parent aedba43 commit ae01649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/controllers/engine_cycle/knock_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
void KnockController::onConfigurationChange(engine_configuration_s const * previousConfig) {
KnockControllerBase::onConfigurationChange(previousConfig);

m_maxRetardTable.init(config->maxKnockRetardTable, config->maxKnockRetardRpmBins, config->maxKnockRetardLoadBins);
m_maxRetardTable.init(config->maxKnockRetardTable, config->maxKnockRetardLoadBins, config->maxKnockRetardRpmBins);
}

int getCylinderKnockBank(uint8_t cylinderNumber) {
Expand Down

0 comments on commit ae01649

Please sign in to comment.