Skip to content

Commit

Permalink
GCS_MAVLink: log source sysid/compid in MAVC
Browse files Browse the repository at this point in the history
For field length purposed had tor remove Current and autocontinue which we don't care about
anyway.
  • Loading branch information
peterbarker authored and tridge committed Sep 7, 2021
1 parent 13a7b60 commit fd144cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4358,7 +4358,7 @@ void GCS_MAVLINK::handle_command_long(const mavlink_message_t &msg)
// log the packet:
mavlink_command_int_t packet_int;
convert_COMMAND_LONG_to_COMMAND_INT(packet, packet_int);
AP::logger().Write_Command(packet_int, result, true);
AP::logger().Write_Command(packet_int, msg.sysid, msg.compid, result, true);

hal.util->persistent_data.last_mavlink_cmd = 0;
}
Expand Down Expand Up @@ -4545,7 +4545,7 @@ void GCS_MAVLINK::handle_command_int(const mavlink_message_t &msg)
msg.sysid,
msg.compid);

AP::logger().Write_Command(packet, result);
AP::logger().Write_Command(packet, msg.sysid, msg.compid, result);

hal.util->persistent_data.last_mavlink_cmd = 0;
}
Expand Down

0 comments on commit fd144cc

Please sign in to comment.