add a run to avoid tight loop hogging (#913)

This commit is contained in:
Peli de Halleux
2019-09-17 10:52:00 -07:00
committed by GitHub
parent 0f07a89981
commit 5c3c83eb52

View File

@ -267,6 +267,9 @@ namespace motors {
this.pauseUntilReady();
// allow robot to settle
this.settle();
} else {
// give a breather to the event system in tight loops
pause(1);
}
}