Skip to content

Commit 87c4bc8

Browse files
committed
Increased indentation
No changes except increased indentation in _connect() for clarity of reading
1 parent 29c6534 commit 87c4bc8

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

src/wifi/AdafruitIO_ESP32.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ void AdafruitIO_ESP32::_connect()
3737
if(strlen(_ssid) != 0)
3838
{
3939
_disconnect();
40-
delay(100);
41-
WiFi.begin(_ssid, _pass);
42-
delay(100);
43-
_status = AIO_NET_DISCONNECTED;
40+
delay(100);
41+
WiFi.begin(_ssid, _pass);
42+
delay(100);
43+
_status = AIO_NET_DISCONNECTED;
4444
}
4545

4646
}

src/wifi/AdafruitIO_ESP8266.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ void AdafruitIO_ESP8266::_connect()
3939
if(strlen(_ssid) != 0)
4040
{
4141
_disconnect();
42-
delay(100);
43-
WiFi.begin(_ssid, _pass);
44-
delay(100);
45-
_status = AIO_NET_DISCONNECTED;
42+
delay(100);
43+
WiFi.begin(_ssid, _pass);
44+
delay(100);
45+
_status = AIO_NET_DISCONNECTED;
4646
}
4747

4848
}

src/wifi/AdafruitIO_MKR1000.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ void AdafruitIO_MKR1000::_connect()
3737
{
3838
if(strlen(_ssid) != 0)
3939
{
40-
// no shield? bail
41-
if(WiFi.status() == WL_NO_SHIELD)
42-
return;
40+
// no shield? bail
41+
if(WiFi.status() == WL_NO_SHIELD)
42+
return;
4343

4444
_disconnect();
4545

46-
WiFi.begin(_ssid, _pass);
47-
_status = AIO_NET_DISCONNECTED;
46+
WiFi.begin(_ssid, _pass);
47+
_status = AIO_NET_DISCONNECTED;
4848
}
4949

5050
}

src/wifi/AdafruitIO_WICED.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ void AdafruitIO_WICED::_connect()
3838
if(strlen(_ssid) != 0)
3939
{
4040
_disconnect();
41-
Feather.connect(_ssid, _pass);
42-
_status = AIO_NET_DISCONNECTED;
41+
Feather.connect(_ssid, _pass);
42+
_status = AIO_NET_DISCONNECTED;
4343
}
4444
}
4545

src/wifi/AdafruitIO_WINC1500.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,17 @@ class AdafruitIO_WINC1500 : public AdafruitIO {
132132
if(strlen(_ssid) != 0)
133133
{
134134
_disconnect();
135-
WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en);
135+
WiFi.setPins(_winc_cs, _winc_irq, _winc_rst, _winc_en);
136136

137-
// no shield? bail
138-
if (WiFi.status() == WL_NO_SHIELD) {
139-
AIO_DEBUG_PRINTLN("No WINC1500 Module Detected!");
140-
return;
141-
}
137+
// no shield? bail
138+
if (WiFi.status() == WL_NO_SHIELD) {
139+
AIO_DEBUG_PRINTLN("No WINC1500 Module Detected!");
140+
return;
141+
}
142142

143-
WiFi.begin(_ssid, _pass);
144-
_status = AIO_NET_DISCONNECTED;
145-
}
143+
WiFi.begin(_ssid, _pass);
144+
_status = AIO_NET_DISCONNECTED;
145+
}
146146
}
147147

148148
/**************************************************************************/

0 commit comments

Comments
 (0)