summaryrefslogtreecommitdiff
path: root/i/marvin/src/motor/motor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/motor/motor.cc')
-rw-r--r--i/marvin/src/motor/motor.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/i/marvin/src/motor/motor.cc b/i/marvin/src/motor/motor.cc
index c292e9c..7e78aff 100644
--- a/i/marvin/src/motor/motor.cc
+++ b/i/marvin/src/motor/motor.cc
@@ -206,9 +206,11 @@ bool Motor::sync(void)
return false;
}
-void Motor::wait(int timeout)
+bool
+Motor::wait(int timeout)
{
asserv_.wait(timeout);
+ return sync ();
}
/// Récupère le File Descriptor