From ecdba5681c35d909d37dcc3db7d12f4e0a88baaf Mon Sep 17 00:00:00 2001 From: Bob Long Date: Wed, 27 Nov 2024 14:23:50 +1100 Subject: [PATCH] AP_RCProtocol_UDP: only yield to FDM if enabled --- libraries/AP_RCProtocol/AP_RCProtocol_UDP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_UDP.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_UDP.cpp index 78b7a80cab..0713af89f6 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_UDP.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_UDP.cpp @@ -64,8 +64,8 @@ bool AP_RCProtocol_UDP::init() void AP_RCProtocol_UDP::update() { #if AP_RCPROTOCOL_FDM_ENABLED - // yield to the FDM backend if it is getting data - if (fdm_backend->active()) { + // yield to the FDM backend if it is active and getting data + if (protocol_enabled(AP_RCProtocol::FDM) && fdm_backend->active()) { return; } #endif