diff --git a/firmware/config/engines/mazda_miata_1_6.cpp b/firmware/config/engines/mazda_miata_1_6.cpp index 3083b66955..a1172c7ca5 100644 --- a/firmware/config/engines/mazda_miata_1_6.cpp +++ b/firmware/config/engines/mazda_miata_1_6.cpp @@ -262,6 +262,10 @@ void setMiataNA6_MAP_Configuration(DECLARE_CONFIG_PARAMETER_SIGNATURE) { boardConfiguration->clutchDownPin = GPIOA_3; boardConfiguration->clutchDownPinMode = PI_PULLUP; + + // 110mm red wire from 1N/W14 to bottom of W45 + engineConfiguration->throttlePedalUpPin = GPIOA_7; + // green wire from 1Q/W17 to bottom of W46 engineConfiguration->acSwitchAdc = EFI_ADC_6; // PA6 diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index f62a271563..fe207e8bb2 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -503,7 +503,7 @@ void startIdleThread(Logging*sharedLogger) { } if (CONFIG(throttlePedalUpPin) != GPIO_UNASSIGNED) { - efiSetPadMode("clutch up switch", CONFIG(throttlePedalUpPin), + efiSetPadMode("throttle pedal up switch", CONFIG(throttlePedalUpPin), getInputMode(CONFIGB(throttlePedalUpPinMode))); }