mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 15:51:35 +08:00
mavlink_shell: set target system and component id
These got added in https://github.com/mavlink/mavlink/pull/1725 and need to be set for correct routing.
This commit is contained in:
@@ -1778,6 +1778,7 @@ MavlinkReceiver::handle_message_serial_control(mavlink_message_t *msg)
|
||||
if (shell) {
|
||||
// we ignore the timeout, EXCLUSIVE & BLOCKING flags of the SERIAL_CONTROL message
|
||||
if (serial_control_mavlink.count > 0) {
|
||||
shell->setTargetID(msg->sysid, msg->compid);
|
||||
shell->write(serial_control_mavlink.data, serial_control_mavlink.count);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user