Skip to content

Commit c373408

Browse files
committed
ESPHost - fix softAP password check
1 parent 5020fd4 commit c373408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ESPhost/src/CCtrlWrapper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ class CCtrlMsgWrapper {
730730
}
731731

732732
if((strlen((char *)&cfg.pwd) > MAX_PWD_LENGTH) ||
733-
((cfg.encryption_mode == WIFI_AUTH_OPEN) &&
733+
((cfg.encryption_mode != WIFI_AUTH_OPEN) &&
734734
(strlen((char *)&cfg.pwd) < MIN_PWD_LENGTH)) ) {
735735
/* INVALID BASS*/
736736
Serial.println("[ERROR]: Invalid password");

0 commit comments

Comments
 (0)