From 9c3f40c5f8aa2c7ae7226f005731a5390907eefb Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Fri, 13 Aug 2021 09:20:52 +0200 Subject: [PATCH] GCS_MAVLink: fix wrong flags variable packet.flags as been setted to a fixed value so we should be using the flags copy and not the packet.flags --- libraries/GCS_MAVLink/GCS_serial_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_serial_control.cpp b/libraries/GCS_MAVLink/GCS_serial_control.cpp index 50322e2e5dac29..c22ac1914d5bde 100644 --- a/libraries/GCS_MAVLink/GCS_serial_control.cpp +++ b/libraries/GCS_MAVLink/GCS_serial_control.cpp @@ -169,7 +169,7 @@ void GCS_MAVLINK::handle_serial_control(const mavlink_message_t &msg) return; } - if (packet.flags & SERIAL_CONTROL_FLAG_BLOCKING) { + if (flags & SERIAL_CONTROL_FLAG_BLOCKING) { while (!HAVE_PAYLOAD_SPACE(chan, SERIAL_CONTROL)) { hal.scheduler->delay(1); }