Rover: be friendly to multi-tasking OSes

This commit is contained in:
Andrew Tridgell 2013-09-28 20:10:06 +10:00
parent f68778d453
commit 0c99a1bbbb

View File

@ -629,6 +629,10 @@ void loop()
scheduler.run(19000U);
}
if ((timer - fast_loopTimer) <= 19) {
// we have plenty of time - be friendly to multi-tasking OSes
hal.scheduler->delay(1);
}
}
// Main loop 50Hz