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 ESDC2014 by
Diff: lifter.cpp
- Revision:
- 4:a377ecb9364f
- Parent:
- 0:3417ca0a36c0
diff -r 4306d042af6f -r a377ecb9364f lifter.cpp
--- a/lifter.cpp Thu Jul 03 14:52:44 2014 +0000
+++ b/lifter.cpp Fri Jul 04 13:05:15 2014 +0000
@@ -89,12 +89,12 @@
{
pulseCount = targetPulseCount = 0;
_stop = 0;
-
- if(_dir = move_dir == 0x00) //up
+ _dir = move_dir ;
+ if(_dir == 0x00) //up
{
lifterUp(move_dis);
}
- else if(_dir = move_dir == 0x02) //down
+ else if(_dir == 0x02) //down
{
lifterDown(move_dis);
}
