Skip to content

Commit

Permalink
callsign validation process fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Jun 25, 2024
1 parent 8bb0b04 commit ad1129c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LoRa_APRS_iGate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ________________________________________________________________________________
#include "A7670_utils.h"
#endif

String versionDate = "2024.06.24";
String versionDate = "2024.06.25";
Configuration Config;
WiFiClient espClient;

Expand Down
3 changes: 1 addition & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -363,7 +363,6 @@ namespace Utils {
if (!isAlpha(cleanCallsign[i - 1])) return false;
}
}

return true;
}

Expand Down

0 comments on commit ad1129c

Please sign in to comment.