diff --git a/firmware/config/boards/hellen/alphax-4chan/board_configuration.cpp b/firmware/config/boards/hellen/alphax-4chan/board_configuration.cpp index e3b4c5e6d0..461a63c46b 100644 --- a/firmware/config/boards/hellen/alphax-4chan/board_configuration.cpp +++ b/firmware/config/boards/hellen/alphax-4chan/board_configuration.cpp @@ -99,8 +99,7 @@ static void setupDefaultSensorInputs() { engineConfiguration->triggerInputPins[1] = H144_IN_CAM; engineConfiguration->camInputs[0] = Gpio::Unassigned; - engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; - engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1; + setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1); setPPSInputs(H144_IN_PPS, H144_IN_AUX2); diff --git a/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp b/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp index 2456c2cbe1..a164d63f5e 100644 --- a/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen-gm-e67/board_configuration.cpp @@ -76,8 +76,7 @@ static void setupDefaultSensorInputs() { engineConfiguration->triggerInputPins[1] = Gpio::Unassigned; engineConfiguration->camInputs[0] = H144_IN_SENS4; - engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; - engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1; + setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1); setPPSInputs(H144_IN_PPS, H144_IN_AUX2); diff --git a/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp b/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp index 8d0fed5e09..e63806d27e 100644 --- a/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp @@ -69,8 +69,8 @@ static void setupDefaultSensorInputs() { // Direct hall-only cam input engineConfiguration->camInputs[0] = Gpio::A6; // 86 - CAM1 - engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; // 92 - TPS 1 - engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1; + // 92 - TPS 1 + setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1); // 34 In PPS1 // 35 In PPS2 diff --git a/firmware/config/boards/hellen/hellen128/board_configuration.cpp b/firmware/config/boards/hellen/hellen128/board_configuration.cpp index 425fd665aa..c38f92daa9 100644 --- a/firmware/config/boards/hellen/hellen128/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen128/board_configuration.cpp @@ -73,8 +73,7 @@ static void setupDefaultSensorInputs() { // Direct hall-only cam input engineConfiguration->camInputs[0] = Gpio::A6; - engineConfiguration->tps1_1AdcChannel = EFI_ADC_4; - engineConfiguration->tps1_2AdcChannel = EFI_ADC_8; + setTPS1Inputs(EFI_ADC_4, EFI_ADC_8); engineConfiguration->mafAdcChannel = H144_IN_MAP1; engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2; diff --git a/firmware/config/boards/hellen/hellen154hyundai/board_configuration.cpp b/firmware/config/boards/hellen/hellen154hyundai/board_configuration.cpp index 8a9a6a4ff7..3b68160913 100644 --- a/firmware/config/boards/hellen/hellen154hyundai/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen154hyundai/board_configuration.cpp @@ -63,8 +63,7 @@ static void setupDefaultSensorInputs() { engineConfiguration->vehicleSpeedSensorInputPin = H144_IN_VSS; - engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; - engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1; + setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1); engineConfiguration->useETBforIdleControl = true; engineConfiguration->throttlePedalUpVoltage = 0.73;