Browse Source

AP_OSD: fixed CPU usage in SITL thread

master
Andrew Tridgell 7 years ago
parent
commit
ba1a611ea9
  1. 1
      libraries/AP_OSD/AP_OSD_SITL.cpp

1
libraries/AP_OSD/AP_OSD_SITL.cpp

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

Loading…
Cancel
Save