diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index 05612177c2..93504bdcc1 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -685,6 +685,14 @@ bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) { return iacMotor.isBusy(); } +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); diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 2771b363b4..74063305ac 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -374,7 +374,7 @@ public: * Needed by the stepper motor code to detect if it works. */ bool isMainRelayEnabled(DECLARE_ENGINE_PARAMETER_SIGNATURE) const; - + /** * Needed by EFI_MAIN_RELAY_CONTROL to handle fuel pump and shutdown timings correctly. * This method returns the number of seconds since the ignition voltage is present. diff --git a/firmware/hw_layer/stepper.h b/firmware/hw_layer/stepper.h index 34048298b1..91ebcffc36 100644 --- a/firmware/hw_layer/stepper.h +++ b/firmware/hw_layer/stepper.h @@ -75,7 +75,7 @@ protected: void saveStepperPos(int pos); int loadStepperPos(); - + void changeCurrentPosition(bool positive); void postCurrentPosition(void);