Skip to content

Commit

Permalink
preset direction[id]
Browse files Browse the repository at this point in the history
  • Loading branch information
sq7bti committed Aug 27, 2014
1 parent 85a8ae5 commit a54ba69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iAccelStepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void iAccelStepper::begin(uint8_t pin1, uint8_t pin2, uint8_t pin3)
ucPin_step[id] = digitalPinToBitMask(pin1);
ulPort_dir[id] = portOutputRegister(digitalPinToPort(pin2));
ucPin_dir[id] = digitalPinToBitMask(pin2);
direction[id] = false;
}
}

Expand Down

0 comments on commit a54ba69

Please sign in to comment.