callsignValidationTest

This commit is contained in:
richonguzman 2024-06-07 17:29:55 -04:00
parent a8e1a48d62
commit 397a94cc47
5 changed files with 116 additions and 62 deletions

View file

@ -62,7 +62,8 @@ namespace DIGI_Utils {
if (packet != "") {
if ((packet.substring(0, 3) == "\x3c\xff\x01") && (packet.indexOf("NOGATE") == -1)) {
Sender = packet.substring(3, packet.indexOf(">"));
if (Sender != Config.callsign) {
if (Sender != Config.callsign && Utils::checkValidCallsign(Sender)) {
//if (Sender != Config.callsign) {
if (STATION_Utils::check25SegBuffer(Sender, packet.substring(packet.indexOf(":") + 2))) {
STATION_Utils::updateLastHeard(Sender);
Utils::typeOfPacket(packet.substring(3), 2); // Digi