mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-04 20:32:13 +02:00
checkValidCallsign update
This commit is contained in:
@@ -402,6 +402,7 @@ namespace Utils {
|
||||
cleanCallsign = callsign.substring(0, callsign.indexOf("-"));
|
||||
String ssid = callsign.substring(callsign.indexOf("-") + 1);
|
||||
if (ssid.indexOf("-") != -1 || ssid.length() > 2) return false;
|
||||
if (ssid.length() == 2 && ssid[0] == '0') return false;
|
||||
for (int i = 0; i < ssid.length(); i++) {
|
||||
if (!isAlphaNumeric(ssid[i])) return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user