My Version of the Crealab MotorLib.

Fork of MotorLib by CreaLab

Files at this revision

API Documentation at this revision

Comitter:
julienPhuong
Date:
Mon Oct 15 12:06:50 2018 +0000
Parent:
11:25d26c72a2f7
Child:
13:4563244c4071
Commit message:
Fixed the motor command issue. Thanks Francois.

Changed in this revision

motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/motor.cpp	Thu Jul 27 21:28:22 2017 +0000
+++ b/motor.cpp	Mon Oct 15 12:06:50 2018 +0000
@@ -204,9 +204,9 @@
                 }
             else if ((command == MOTOR_stop)||(NumSteps==0)) {
                 StopMotor();
-                     if(state != Motor_IDLE ){//|| itOnStop == true) {
-                        _callback.call();
-                    }
+//                     if(state != Motor_IDLE ){//|| itOnStop == true) {
+//                        _callback.call();
+//                    }
                 state = Motor_IDLE;
                }
             command = MOTOR_nop;