add a run to avoid tight loop hogging (#913)
This commit is contained in:
		@@ -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);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user