David Lowe / stepper

Fork of stepper by Kenji Arai

Files at this revision

API Documentation at this revision

Comitter:
gregeric
Date:
Mon Dec 22 21:49:05 2014 +0000
Parent:
5:f2bbcd06019e
Child:
7:9fc4b1be489c
Commit message:
Fix the fix

Changed in this revision

stepper.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/stepper.cpp	Mon Dec 22 21:15:55 2014 +0000
+++ b/stepper.cpp	Mon Dec 22 21:49:05 2014 +0000
@@ -64,7 +64,7 @@
         steps = -steps;
     }
     // test for +ve, don't flip direction for stop command steps==0
-    if (steps > 0){
+    else if (steps > 0){
        inf.direction = D_CW;
     }
     inf.total_step = steps;