Skip to content

Commit

Permalink
added curly braces to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
guutz committed Oct 6, 2024
1 parent 55dcaf8 commit 17a52c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wifi/AdafruitIO_WINC1500.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ class AdafruitIO_WINC1500 : public AdafruitIO {
return;
}

if (_pass && strlen(_pass) > 0)
if (_pass && strlen(_pass) > 0) {
WiFi.begin(_ssid, _pass);
else
}
else {
WiFi.begin(_ssid);
}
_status = AIO_NET_DISCONNECTED;
}
}
Expand Down

0 comments on commit 17a52c7

Please sign in to comment.