* fix #2269

* cleanup
This commit is contained in:
Matthew Kennedy 2021-02-03 06:04:22 -08:00 committed by GitHub
parent 5ceeac93e9
commit 9151b0c6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 18 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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