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.
Fork of MotorLib by
Diff: motor.cpp
- Revision:
- 12:fd881ff72048
- Parent:
- 11:25d26c72a2f7
- Child:
- 13:4563244c4071
diff -r 25d26c72a2f7 -r fd881ff72048 motor.cpp
--- 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;
