parent
5ceeac93e9
commit
9151b0c6c1
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue