Merge remote-tracking branch 'origin/Hellen_fork_point' into master

# Conflicts:
#	firmware/controllers/algo/engine.h
#	firmware/hw_layer/drivers/drivers.mk
#	firmware/hw_layer/stepper.h
#	firmware/integration/rusefi_config.txt
#	firmware/tunerstudio/rusefi.input
#	simulator/simulator/efifeatures.h
This commit is contained in:
rusefi 2020-09-07 15:02:11 -04:00
commit f33b3eda8a
3 changed files with 10 additions and 2 deletions

View File

@ -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);

View File

@ -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.

View File

@ -75,7 +75,7 @@ protected:
void saveStepperPos(int pos);
int loadStepperPos();
void changeCurrentPosition(bool positive);
void postCurrentPosition(void);