From 7a0d3679004f3624d5cd1ffe938db33e0bd6aa7a Mon Sep 17 00:00:00 2001 From: N0vaPixel Date: Mon, 6 Mar 2017 23:10:24 +0100 Subject: [PATCH] FIX Allow the user to set an empty password in order to make an open AP --- esp8266_deauther/Settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266_deauther/Settings.cpp b/esp8266_deauther/Settings.cpp index e14d8b9d92..5fa627fa86 100644 --- a/esp8266_deauther/Settings.cpp +++ b/esp8266_deauther/Settings.cpp @@ -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 = "";