From 69f462fe007ea48c1b2d92bc67a4499952ed509c Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 29 Jun 2023 19:03:59 -0400 Subject: [PATCH] only:alphax-2chan better defaults around MAP & Baro --- .../boards/hellen/alphax-2chan/board_configuration.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/hellen/alphax-2chan/board_configuration.cpp b/firmware/config/boards/hellen/alphax-2chan/board_configuration.cpp index 27f3ac304f..b539c3575e 100644 --- a/firmware/config/boards/hellen/alphax-2chan/board_configuration.cpp +++ b/firmware/config/boards/hellen/alphax-2chan/board_configuration.cpp @@ -64,9 +64,6 @@ static void setupDefaultSensorInputs() { engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; engineConfiguration->mafAdcChannel = EFI_ADC_NONE; - engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2; - engineConfiguration->baroSensor.type = MT_MPXH6400; - engineConfiguration->baroSensor.hwChannel = H144_IN_MAP3; engineConfiguration->afr.hwChannel = EFI_ADC_1; @@ -131,6 +128,12 @@ void setBoardDefaultConfiguration() { if (hellenBoardId == BOARD_ID_2chan_e || hellenBoardId == BOARD_ID_2chan_f) { // todo: flip that condition to check for "if not old board" setHellenMMbaro(); + engineConfiguration->map.sensor.hwChannel = H144_IN_MAP3; // On-board MAP + engineConfiguration->map.type = MT_MPXH6400; + } else { + engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2; // B2 external signal + engineConfiguration->baroSensor.type = MT_MPXH6400; + engineConfiguration->baroSensor.hwChannel = H144_IN_MAP3; // On-board MAP } engineConfiguration->boardUseTempPullUp = true;