jrt92 created page: home authored by Daniel Vestergaard's avatar Daniel Vestergaard
......@@ -163,7 +163,8 @@ public void action() {
BumperCar.rightMotor.backward();
long start = System.currentTimeMillis();
while(!(_suppressed || takeControl()) && System.currentTimeMillis() - start < 1000) {
while(!(_suppressed || takeControl()) &&
System.currentTimeMillis() - start < 1000) {
Thread.yield();
}
if(System.currentTimeMillis() - start >= 1000) {
......
......