mirror of https://github.com/rusefi/rusefi-1.git
parent
5ceeac93e9
commit
9151b0c6c1
|
@ -114,15 +114,6 @@ bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
return iacMotor.isBusy();
|
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) {
|
void initIdleHardware(Logging* sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
logger = sharedLogger;
|
logger = sharedLogger;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,5 @@
|
||||||
|
|
||||||
class Logging;
|
class Logging;
|
||||||
void initIdleHardware(Logging* sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
void initIdleHardware(Logging* sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|
||||||
bool isIdleHardwareRestartNeeded();
|
bool isIdleHardwareRestartNeeded();
|
||||||
bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
|
@ -339,13 +339,6 @@ void applyNewHardwareSettings(void) {
|
||||||
stopHip9001_pins();
|
stopHip9001_pins();
|
||||||
#endif /* EFI_HIP_9011 */
|
#endif /* EFI_HIP_9011 */
|
||||||
|
|
||||||
#if EFI_IDLE_CONTROL
|
|
||||||
bool isIdleRestartNeeded = isIdleHardwareRestartNeeded();
|
|
||||||
if (isIdleRestartNeeded) {
|
|
||||||
stopIdleHardware();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (BOARD_EXT_GPIOCHIPS > 0)
|
#if (BOARD_EXT_GPIOCHIPS > 0)
|
||||||
stopSmartCsPins();
|
stopSmartCsPins();
|
||||||
#endif /* (BOARD_EXT_GPIOCHIPS > 0) */
|
#endif /* (BOARD_EXT_GPIOCHIPS > 0) */
|
||||||
|
@ -441,7 +434,7 @@ void applyNewHardwareSettings(void) {
|
||||||
|
|
||||||
|
|
||||||
#if EFI_IDLE_CONTROL
|
#if EFI_IDLE_CONTROL
|
||||||
if (isIdleRestartNeeded) {
|
if (isIdleHardwareRestartNeeded()) {
|
||||||
initIdleHardware(sharedLogger);
|
initIdleHardware(sharedLogger);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue