From ae0164950e2139bb8e674a76ceb55e4d9c24ed9a Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Thu, 2 May 2024 02:10:01 -0500 Subject: [PATCH] fix knock retard table init column and row definition were swapped w/re: value lookup fixes #246, #417 --- firmware/controllers/engine_cycle/knock_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/engine_cycle/knock_controller.cpp b/firmware/controllers/engine_cycle/knock_controller.cpp index 8d5308b8c0..b75d35c998 100644 --- a/firmware/controllers/engine_cycle/knock_controller.cpp +++ b/firmware/controllers/engine_cycle/knock_controller.cpp @@ -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) {