add a run to avoid tight loop hogging (#913)
This commit is contained in:
1 parent
0f07a89981
commit
5c3c83eb52
1 file changed
+3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user