From 17a52c76821f2c4d3767f0783edf78a100d4cebf Mon Sep 17 00:00:00 2001 From: Michael Gutierrez Date: Sat, 5 Oct 2024 22:09:43 -0700 Subject: [PATCH] added curly braces to if statement --- src/wifi/AdafruitIO_WINC1500.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wifi/AdafruitIO_WINC1500.h b/src/wifi/AdafruitIO_WINC1500.h index 5bb4672..789073a 100644 --- a/src/wifi/AdafruitIO_WINC1500.h +++ b/src/wifi/AdafruitIO_WINC1500.h @@ -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; } }