AP_OSD: fixed CPU usage in SITL thread

This commit is contained in:
Andrew Tridgell 2018-07-07 13:02:48 +10:00
parent b5b9ff8dbc
commit ba1a611ea9
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ void AP_OSD_SITL::update_thread(void)
w->close();
}
if (counter == last_counter) {
usleep(10000);
continue;
}
last_counter = counter;