Skip to content

Commit 69b49a3

Browse files
lanratnitko12
authored andcommitted
fix network client joinAP wait logic (#120)
1 parent 86365f6 commit 69b49a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/include/NetworkClient.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ bool NetworkClient::joinAP(const char *ssid, const char *pass)
4242
{
4343
Serial.print(".");
4444
if (cnt > 20)
45+
{
4546
Serial.println();
46-
return 0;
47+
return 0;
48+
}
4749
delay(1000);
4850
++cnt;
4951
}

0 commit comments

Comments
 (0)