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

This commit is contained in:
Mingchen Zhang 2021-12-20 08:56:41 +00:00 committed by Andrew Tridgell
parent 8c09da0ee6
commit 83db4e56d0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}