evil manual cherry

This commit is contained in:
rusefi 2019-11-11 20:34:09 -05:00
parent 7c3594c95a
commit 30f07fa14c
1 changed files with 2 additions and 2 deletions

View File

@ -185,10 +185,10 @@ void StepperMotor::initialize(brain_pin_e stepPin, brain_pin_e directionPin, pin
efiSetPadMode("stepper enable", enablePin, PAL_MODE_OUTPUT_PUSHPULL);
#if EFI_PROD_CODE
palWritePad(this->enablePort, enablePin, true); // disable stepper
palWritePad(this->enablePort, enablePin, 1); // disable stepper
// All pins must be 0 for correct hardware startup (e.g. stepper auto-disabling circuit etc.).
palWritePad(this->stepPort, this->stepPin, false);
palWritePad(this->stepPort, this->stepPin, 0);
#endif
this->directionPin.setValue(false);