Skip to content

Commit

Permalink
Merge pull request esp8266#95 from N0vaPixel/testing
Browse files Browse the repository at this point in the history
Allow the user to set an empty password in order to make an open AP
  • Loading branch information
spacehuhn authored Mar 7, 2017
2 parents 8107320 + 7a0d367 commit 4d4d459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp8266_deauther/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void Settings::load(){
ssidLen = EEPROM.read(ssidLenAdr);
passwordLen = EEPROM.read(passwordLenAdr);

if(ssidLen < 1 || ssidLen > 32 || passwordLen < 8 || passwordLen > 32) reset();
if(ssidLen < 1 || ssidLen > 32 || passwordLen < 8 && passwordLen != 0 || passwordLen > 32) reset();
else{
ssid = "";
password = "";
Expand Down

0 comments on commit 4d4d459

Please sign in to comment.