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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}