add a run to avoid tight loop hogging (#913)
This commit is contained in:
parent
0f07a89981
commit
5c3c83eb52
@ -267,6 +267,9 @@ namespace motors {
|
|||||||
this.pauseUntilReady();
|
this.pauseUntilReady();
|
||||||
// allow robot to settle
|
// allow robot to settle
|
||||||
this.settle();
|
this.settle();
|
||||||
|
} else {
|
||||||
|
// give a breather to the event system in tight loops
|
||||||
|
pause(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user