Browse Source

AP_SmartAudio: fix a bug that would starve the lower priority thread, such as scripting.

gps-1.3.1
Mingchen Zhang 3 years ago committed by Randy Mackay
parent
commit
61e0c5b6e7
  1. 2
      libraries/AP_VideoTX/AP_SmartAudio.cpp

2
libraries/AP_VideoTX/AP_SmartAudio.cpp

@ -115,7 +115,7 @@ void AP_SmartAudio::loop() @@ -115,7 +115,7 @@ void AP_SmartAudio::loop()
}
// nothing going on so give CPU to someone else
if (!_is_waiting_response && !_initialised) {
if (!_is_waiting_response || !_initialised) {
hal.scheduler->delay(100);
}

Loading…
Cancel
Save