mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-11-05 13:12:25 +01:00
callsign validation process fix
This commit is contained in:
1 parent
8bb0b0446c
commit
ad1129c588
2 files changed
+2
-3
No files matched your search
+1
-2
@@ -331,7 +331,7 @@ namespace Utils {
|
||||
if (callsign == "WLNK-1") return true;
|
||||
|
||||
String cleanCallsign;
|
||||
if (callsign.indexOf("-")) { // SSID Validation
|
||||
if (callsign.indexOf("-") > 0) { // SSID Validation
|
||||
cleanCallsign = callsign.substring(0, callsign.indexOf("-"));
|
||||
String ssid = callsign.substring(callsign.indexOf("-") + 1);
|
||||
if (ssid.indexOf("-") != -1 || ssid.length() > 2) return false;
|
||||
@@ -363,7 +363,6 @@ namespace Utils {
|
||||
if (!isAlpha(cleanCallsign[i - 1])) return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user