summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/es/test_es.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/es/test_es.cc')
-rw-r--r--2005/i/robert/src/es/test_es.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/2005/i/robert/src/es/test_es.cc b/2005/i/robert/src/es/test_es.cc
index 630edc6..7e49762 100644
--- a/2005/i/robert/src/es/test_es.cc
+++ b/2005/i/robert/src/es/test_es.cc
@@ -93,10 +93,10 @@ main (int argc, char **argv)
std::cout << "Le prochain obstacle est " << (es.obsTropPres() ? "TROP PRES." : "LOIN.") << std::endl;
break;
}
- do
- {
- es.sync();
- }while(!es.ascIsIdle());
+
+ while (!es.wait (-1) || !es.ascIsIdle())
+ ;
+
break;
}
case 'w':
@@ -110,7 +110,6 @@ main (int argc, char **argv)
{
es.wait (stop - t);
t = Timer::getProgramTime ();
- es.sync();
}
break;
}