From ba1a611ea9d47e92d41bacb0fa6ca72c1a9d4baa Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 7 Jul 2018 13:02:48 +1000 Subject: [PATCH] AP_OSD: fixed CPU usage in SITL thread --- libraries/AP_OSD/AP_OSD_SITL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_OSD/AP_OSD_SITL.cpp b/libraries/AP_OSD/AP_OSD_SITL.cpp index 4b226d6f09..52610d9e96 100644 --- a/libraries/AP_OSD/AP_OSD_SITL.cpp +++ b/libraries/AP_OSD/AP_OSD_SITL.cpp @@ -137,6 +137,7 @@ void AP_OSD_SITL::update_thread(void) w->close(); } if (counter == last_counter) { + usleep(10000); continue; } last_counter = counter;