From 3961e1d1adf428ff0fa66ed5fe0d6192adf164bf Mon Sep 17 00:00:00 2001 From: Walter Boring Date: Fri, 26 Sep 2025 11:55:40 -0400 Subject: [PATCH] Added ThirdPartyPacket decoding in tcpkiss driver This patch adds a check in the tcpkiss driver to check to see if the packet is a 3rd party packet and automatically return the subpacket if it is. --- aprsd/client/drivers/tcpkiss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aprsd/client/drivers/tcpkiss.py b/aprsd/client/drivers/tcpkiss.py index 3a0c391..d6c456c 100644 --- a/aprsd/client/drivers/tcpkiss.py +++ b/aprsd/client/drivers/tcpkiss.py @@ -248,7 +248,11 @@ class TCPKISSDriver: LOG.warning(f'FRAME: {str(frame)}') try: aprslib_frame = aprslib.parse(str(frame)) - return core.factory(aprslib_frame) + packet = core.factory(aprslib_frame) + if isinstance(packet, core.ThirdPartyPacket): + return packet.subpacket + else: + return packet except Exception as e: LOG.error(f'Error decoding packet: {e}') return None