Hellen says isIdleMotorBusy

(cherry picked from commit b24246791e)
This commit is contained in:
rusefi 2020-09-07 14:12:21 -04:00
parent a88e142df0
commit ec0d3a8eb2
2 changed files with 9 additions and 0 deletions

View File

@ -544,6 +544,14 @@ bool isIdleHardwareRestartNeeded() {
}
bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (!CONFIG(useStepperIdle)) {
// todo: check other motor types?
return false;
}
return iacMotor.isBusy();
}
void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
#if EFI_PROD_CODE
brain_pin_markUnused(activeConfiguration.stepperEnablePin);

View File

@ -35,5 +35,6 @@ void setIdleDT(int value);
void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void initIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool isIdleHardwareRestartNeeded();
bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void onConfigurationChangeIdleCallback(engine_configuration_s *previousConfiguration);