From 14b6f7e948b524ec1e271a83bbe4b4ae6acea98b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 10 Nov 2022 11:25:19 -0500 Subject: [PATCH] Nissan MAF --- firmware/controllers/sensors/maf.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/controllers/sensors/maf.cpp b/firmware/controllers/sensors/maf.cpp index 69cc302008..9b74273ce2 100644 --- a/firmware/controllers/sensors/maf.cpp +++ b/firmware/controllers/sensors/maf.cpp @@ -1,13 +1,13 @@ #include "pch.h" -static int addMafPoint(persistent_config_s *e, int i, float kgHrValue, float voltage) { - e->mafDecoding[i] = kgHrValue; - e->mafDecodingBins[i] = voltage; - return i + 1; +static int addMafPoint(persistent_config_s *config, int index, float kgHrValue, float voltage) { + config->mafDecoding[index] = kgHrValue; + config->mafDecodingBins[index] = voltage; + return index + 1; } -static int addMafPointByVoltage(persistent_config_s *e, int i, float voltage, float kgHrValue) { - return addMafPoint(s, i, kgHrValue, voltage); +static int addMafPointByVoltage(persistent_config_s *config, int index, float voltage, float kgHrValue) { + return addMafPoint(config, index, kgHrValue, voltage); } static void fillTheRest(persistent_config_s *e, int i) {