Clutch switch inverted options do not invert detected pedal position

#3044
This commit is contained in:
Andrey 2021-07-24 18:44:13 -04:00
parent 8f1bbac75f
commit 37247db383
2 changed files with 5 additions and 2 deletions

View File

@ -686,8 +686,6 @@ void startIdleThread(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
DISPLAY_TEXT(Manual_idle_control); DISPLAY_TEXT(Manual_idle_control);
/* DISPLAY_ENDIF */ /* DISPLAY_ENDIF */
startPedalPins(PASS_ENGINE_PARAMETER_SIGNATURE);
#if ! EFI_UNIT_TEST #if ! EFI_UNIT_TEST
addConsoleAction("idleinfo", showIdleInfo); addConsoleAction("idleinfo", showIdleInfo);

View File

@ -29,6 +29,7 @@
#include "console_io.h" #include "console_io.h"
#include "sensor_chart.h" #include "sensor_chart.h"
#include "serial_hw.h" #include "serial_hw.h"
#include "idle_thread.h"
#if EFI_PROD_CODE #if EFI_PROD_CODE
#include "mpu_util.h" #include "mpu_util.h"
@ -471,6 +472,8 @@ void initHardwareNoConfig(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
} }
void stopHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void stopHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
stopPedalPins(PASS_ENGINE_PARAMETER_SIGNATURE);
#if EFI_PROD_CODE && (BOARD_EXT_GPIOCHIPS > 0) #if EFI_PROD_CODE && (BOARD_EXT_GPIOCHIPS > 0)
stopSmartCsPins(); stopSmartCsPins();
#endif /* (BOARD_EXT_GPIOCHIPS > 0) */ #endif /* (BOARD_EXT_GPIOCHIPS > 0) */
@ -501,6 +504,8 @@ void startHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
#endif /* HAL_USE_PAL && EFI_JOYSTICK */ #endif /* HAL_USE_PAL && EFI_JOYSTICK */
startTriggerDebugPins(PASS_ENGINE_PARAMETER_SIGNATURE); startTriggerDebugPins(PASS_ENGINE_PARAMETER_SIGNATURE);
startPedalPins(PASS_ENGINE_PARAMETER_SIGNATURE);
} }
void initHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void initHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {