Skip to content

Commit aa5989d

Browse files
committed
WiFi: Support no password for soft AP
1 parent c5c197f commit aa5989d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,8 @@ bool RTK_WIFI::softApSetSsidPassword(const char * ssid, const char * password)
17771777
if (!created)
17781778
systemPrintf("ERROR: Failed to set soft AP SSID and Password!\r\n");
17791779
else if (settings.debugWifiState)
1780-
systemPrintf("WiFi AP: SSID: %s, Password: %s\r\n", ssid, password);
1780+
systemPrintf("WiFi AP: SSID: %s%s%s\r\n", ssid,
1781+
password ? ", Password: " : "", password ? password : "");
17811782
return created;
17821783
}
17831784

0 commit comments

Comments
 (0)