From 44696fbc56e57c1a0346074e3416e126ac1897ab Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 30 Nov 2022 13:57:25 -0500 Subject: [PATCH] Ignore callsign case while processing packets This patch fixes an issue where aprsd was deciding if it was supposed to process a packet destined for itself or not. It was making a case sensitive comparison. This patch makes that comparison case insensitive for the callsign itself. --- aprsd/threads/rx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprsd/threads/rx.py b/aprsd/threads/rx.py index b28dbff..0309955 100644 --- a/aprsd/threads/rx.py +++ b/aprsd/threads/rx.py @@ -115,7 +115,7 @@ class APRSDProcessPacketThread(APRSDThread): ) # Only ack messages that were sent directly to us - if tocall == self.config["aprsd"]["callsign"]: + if (tocall.lower() == self.config["aprsd"]["callsign"].lower()): stats.APRSDStats().msgs_rx_inc() # let any threads do their thing, then ack # send an ack last