Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Stepper.cpp
- Revision:
- 1:66e95666c3b5
- Parent:
- 0:a509cc91f7c2
- Child:
- 2:4102dd9293a6
diff -r a509cc91f7c2 -r 66e95666c3b5 Stepper.cpp --- a/Stepper.cpp Thu Jul 18 09:05:15 2013 +0000 +++ b/Stepper.cpp Mon Jul 29 09:15:11 2013 +0000 @@ -75,6 +75,14 @@ // ------------------------------------------------------------------------------------ + +bool Stepper::Enable (bool OnOff) +{ + _En = OnOff; +} + +// ------------------------------------------------------------------------------------ + bool Stepper::Set_Dir (bool Dir2Set) { // if (Dir == NC) @@ -138,7 +146,7 @@ if (retval) { - StepCount = 0; // might be very bad for H-BOT + //StepCount = 0; // might be very bad for H-BOT } return retval;