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.
This commit is contained in:
Hemna 2022-11-30 13:57:25 -05:00
parent 78329f79f4
commit 44696fbc56
1 changed files with 1 additions and 1 deletions

View File

@ -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