summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/motor/test_motor.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/motor/test_motor.cc')
-rw-r--r--2005/i/robert/src/motor/test_motor.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/2005/i/robert/src/motor/test_motor.cc b/2005/i/robert/src/motor/test_motor.cc
index e57ff53..bc44f02 100644
--- a/2005/i/robert/src/motor/test_motor.cc
+++ b/2005/i/robert/src/motor/test_motor.cc
@@ -116,9 +116,14 @@ main (int argc, char **argv)
break;
}
motor.sync();
+ while(!motor.idle())
+ {
+ motor.wait(-1);
+ motor.sync();
+ }
break;
}
-
+
case 'w':
{
int stop, t;