Skip to content

Commit

Permalink
GCS_MAVLink: fix wrong flags variable
Browse files Browse the repository at this point in the history
packet.flags as been setted to a fixed value so we should be using the flags copy and not the packet.flags
  • Loading branch information
khancyr committed Oct 17, 2023
1 parent fb87369 commit 9c3f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_serial_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9c3f40c

Please sign in to comment.