From 9a422dbfe8e80631dc949d79c3e84a2e72646a7f Mon Sep 17 00:00:00 2001 From: fury1895 Date: Tue, 18 Jun 2024 10:20:17 +0200 Subject: [PATCH] gimbal - input_mavlink: return NoUpdate by default --- src/modules/gimbal/input_mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/gimbal/input_mavlink.cpp b/src/modules/gimbal/input_mavlink.cpp index 101ebf1e2716..ebfde30d2a73 100644 --- a/src/modules/gimbal/input_mavlink.cpp +++ b/src/modules/gimbal/input_mavlink.cpp @@ -518,7 +518,7 @@ InputMavlinkGimbalV2::update(unsigned int timeout_ms, ControlData &control_data, // We can't return early instead because we need to copy all topics that triggered poll. bool exit_loop = false; - UpdateResult update_result = already_active ? UpdateResult::UpdatedActive : UpdateResult::NoUpdate; + UpdateResult update_result = UpdateResult::NoUpdate; while (!exit_loop && poll_timeout >= 0) {