parent
a88e142df0
commit
ec0d3a8eb2
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue