mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_OSD: fixed CPU usage in SITL thread
This commit is contained in:
parent
b5b9ff8dbc
commit
ba1a611ea9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user