Skip to content

Commit

Permalink
Serial setup: SSID cannot be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Apr 11, 2017
1 parent 1acc943 commit 3ef4ffc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system/src/system_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ void WiFiSetupConsole::handle(char c)
#endif
WLanCredentials creds;

print("SSID: ");
read_line(ssid, 32);
do {
print("SSID: ");
read_line(ssid, 32);
} while (strlen(ssid) == 0);

wlan_scan([](WiFiAccessPoint* ap, void* ptr) {
if (ptr) {
Expand Down

0 comments on commit 3ef4ffc

Please sign in to comment.