Hellen says isIdleMotorBusy
This commit is contained in:
parent
2390c3ae2b
commit
b24246791e
|
@ -677,6 +677,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);
|
||||
|
|
|
@ -38,6 +38,7 @@ 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);
|
||||
float getIdlePidOffset(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
Pid * getIdlePid(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
|
Loading…
Reference in New Issue