From 83db4e56d0ba28960cadc78efe96a52befa4b936 Mon Sep 17 00:00:00 2001 From: Mingchen Zhang Date: Mon, 20 Dec 2021 08:56:41 +0000 Subject: [PATCH] AP_SmartAudio: fix a bug that would starve the lower priority thread, such as scripting. --- libraries/AP_VideoTX/AP_SmartAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_VideoTX/AP_SmartAudio.cpp b/libraries/AP_VideoTX/AP_SmartAudio.cpp index 93ea8f7f09..7f80aa6ed4 100644 --- a/libraries/AP_VideoTX/AP_SmartAudio.cpp +++ b/libraries/AP_VideoTX/AP_SmartAudio.cpp @@ -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); }