auto-sync

This commit is contained in:
rusEfi 2014-12-26 19:04:14 -06:00
parent ce421ea91f
commit 68cd298455
1 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#include "stepper.h"
#include "pin_repository.h"
#define ST_DELAY_MS 20
#define ST_DELAY_MS 200
#define ST_COUNT 200
@ -21,7 +21,6 @@ static msg_t stThread(StepperMotor *motor) {
for (int i = 0; i < ST_COUNT; i++) {
motor->pulse();
}
}
void StepperMotor::pulse() {
@ -31,7 +30,6 @@ void StepperMotor::pulse() {
chThdSleepMilliseconds(ST_DELAY_MS);
}
void StepperMotor::initialize(brain_pin_e stepPin, brain_pin_e directionPin) {
position = 0;