From 310b44868aed7f0909e2474dd27729985f6e91a0 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Wed, 19 Jun 2024 09:15:17 +1000 Subject: [PATCH] MAVLinkInterface: fix debug display of ap type --- ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs b/ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs index 5320719637..d6589af198 100644 --- a/ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs +++ b/ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs @@ -1045,7 +1045,7 @@ private void SetupMavConnect(MAVLinkMessage message, mavlink_heartbeat_t hb) MAVlist[message.sysid, message.compid].recvpacketcount = message.seq; log.InfoFormat("ID sys {0} comp {1} ver{2} type {3} name {4}", message.sysid, message.compid, mavlinkversion, - MAV.aptype.ToString(), MAV.apname.ToString()); + MAVlist[message.sysid, message.compid].aptype.ToString(), MAVlist[message.sysid, message.compid].apname.ToString()); } private void SetupMavConnect(MAVLinkMessage message, mavlink_high_latency2_t hl) @@ -1062,7 +1062,7 @@ private void SetupMavConnect(MAVLinkMessage message, mavlink_high_latency2_t hl) MAVlist[message.sysid, message.compid].recvpacketcount = message.seq; log.InfoFormat("ID HL sys {0} comp {1} ver{2} type {3} name {4}", message.sysid, message.compid, mavlinkversion, - MAV.aptype.ToString(), MAV.apname.ToString()); + MAVlist[message.sysid, message.compid].aptype.ToString(), MAVlist[message.sysid, message.compid].apname.ToString()); } public MAVLinkMessage getHeartBeat()