From fda55a2dcfe3ad172cfa72714d7b09c2733c5c44 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 31 Dec 2022 14:47:29 -0500 Subject: [PATCH] refactoring --- firmware/controllers/settings.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index 0158ff6386..4b746c8a08 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -343,13 +343,7 @@ static void setFanSetting(float onTempC, float offTempC) { } static void setWholeTimingMap(float value) { - // todo: table helper? - efiPrintf("Setting whole timing map to %.2f", value); - for (int l = 0; l < IGN_LOAD_COUNT; l++) { - for (int r = 0; r < IGN_RPM_COUNT; r++) { - config->ignitionTable[l][r] = value; - } - } + setTable(config->ignitionTable, value); } static void setWholePhaseMapCmd(float value) {