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

View File

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