diff --git a/firmware/controllers/actuators/idle_hardware.cpp b/firmware/controllers/actuators/idle_hardware.cpp index f40845fcbd..15e56c52e2 100644 --- a/firmware/controllers/actuators/idle_hardware.cpp +++ b/firmware/controllers/actuators/idle_hardware.cpp @@ -114,15 +114,6 @@ bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) { return iacMotor.isBusy(); } -void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) { -#if EFI_PROD_CODE - efiSetPadUnused(activeConfiguration.stepperEnablePin); - efiSetPadUnused(activeConfiguration.idle.stepperStepPin); - efiSetPadUnused(activeConfiguration.idle.solenoidPin); - efiSetPadUnused(activeConfiguration.secondSolenoidPin); -#endif /* EFI_PROD_CODE */ -} - void initIdleHardware(Logging* sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { logger = sharedLogger; diff --git a/firmware/controllers/actuators/idle_hardware.h b/firmware/controllers/actuators/idle_hardware.h index 5dfc36626a..5d51658073 100644 --- a/firmware/controllers/actuators/idle_hardware.h +++ b/firmware/controllers/actuators/idle_hardware.h @@ -13,6 +13,5 @@ class Logging; void initIdleHardware(Logging* sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX); -void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE); bool isIdleHardwareRestartNeeded(); bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE); diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index 027553f2ee..eff3319951 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -339,13 +339,6 @@ void applyNewHardwareSettings(void) { stopHip9001_pins(); #endif /* EFI_HIP_9011 */ -#if EFI_IDLE_CONTROL - bool isIdleRestartNeeded = isIdleHardwareRestartNeeded(); - if (isIdleRestartNeeded) { - stopIdleHardware(); - } -#endif - #if (BOARD_EXT_GPIOCHIPS > 0) stopSmartCsPins(); #endif /* (BOARD_EXT_GPIOCHIPS > 0) */ @@ -441,7 +434,7 @@ void applyNewHardwareSettings(void) { #if EFI_IDLE_CONTROL - if (isIdleRestartNeeded) { + if (isIdleHardwareRestartNeeded()) { initIdleHardware(sharedLogger); } #endif