mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-09 00:14:55 +00:00
callsignValidationTest
This commit is contained in:
parent
a8e1a48d62
commit
397a94cc47
5 changed files with 116 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue