From 298b67fb122a00fc0f4552b2f832dac2d13f81c7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 2 Jun 2022 23:28:39 -0400 Subject: [PATCH] proteus pinout minor mess --- firmware/config/boards/proteus_meta.h | 2 +- firmware/controllers/actuators/electronic_throttle.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/proteus_meta.h b/firmware/config/boards/proteus_meta.h index acd18c72ed..902018e3e3 100644 --- a/firmware/config/boards/proteus_meta.h +++ b/firmware/config/boards/proteus_meta.h @@ -105,7 +105,7 @@ // PA1 #define PROTEUS_IN_ANALOG_VOLT_6 EFI_ADC_1 -#define PROTEUS_IN_PPS PROTEUS_IN_ANALOG_VOLT_6 +// we are not in sync with yaml?! #define PROTEUS_IN_PPS PROTEUS_IN_ANALOG_VOLT_6 // PA2 #define PROTEUS_IN_ANALOG_VOLT_7 EFI_ADC_2 diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index ffd46f66e5..a5c67f392f 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -1082,9 +1082,9 @@ void setProteusHitachiEtbDefaults() { // EFI_ADC_13: "Analog Volt 4" engineConfiguration->tps2_1AdcChannel = PROTEUS_IN_TPS2_1; // EFI_ADC_0: "Analog Volt 5" - engineConfiguration->tps2_2AdcChannel = EFI_ADC_0; + engineConfiguration->tps2_2AdcChannel = PROTEUS_IN_ANALOG_VOLT_5; // EFI_ADC_1: "Analog Volt 6" - engineConfiguration->throttlePedalPositionAdcChannel = PROTEUS_IN_PPS; + engineConfiguration->throttlePedalPositionAdcChannel = PROTEUS_IN_ANALOG_VOLT_6; // EFI_ADC_2: "Analog Volt 7" engineConfiguration->throttlePedalPositionSecondAdcChannel = PROTEUS_IN_PPS2;