dead code & typo

This commit is contained in:
rusefi 2019-07-13 09:38:37 -04:00
parent 85e5a7b1e7
commit 59fab1a3ba
1 changed files with 2 additions and 7 deletions

View File

@ -105,11 +105,6 @@ static msg_t stThread(StepperMotor *motor) {
#endif
}
// let's part the motor in a known position to begin with
// for (int i = 0; i < ST_COUNT / 2; i++) {
// motor->pulse();
// }
return 0;
}
@ -148,10 +143,10 @@ void StepperMotor::setDirection(bool isIncrementing) {
void StepperMotor::pulse() {
#if EFI_PROD_CODE
palWritePad(enablePort, enablePin, false); // ebable stepper
palWritePad(enablePort, enablePin, false); // enable stepper
palWritePad(stepPort, stepPin, true);
chThdSleepMilliseconds(reactionTime);
palWritePad(stepPort, stepPin, false);
chThdSleepMilliseconds(reactionTime);