Skip to content

Commit d088e7e

Browse files
codestyle unification
1 parent 24899dd commit d088e7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/WiFi/src/WiFi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class WiFiClass: public NetworkInterface
2727
sta_config.security = WIFI_SECURITY_TYPE_PSK;
2828
sta_config.channel = WIFI_CHANNEL_ANY;
2929
sta_config.band = WIFI_FREQ_BAND_2_4_GHZ;
30-
sta_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
30+
sta_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
3131

3232
int ret = net_mgmt(NET_REQUEST_WIFI_CONNECT, sta_iface, &sta_config,
3333
sizeof(struct wifi_connect_req_params));
@@ -56,7 +56,7 @@ class WiFiClass: public NetworkInterface
5656
ap_config.security = WIFI_SECURITY_TYPE_PSK;
5757
ap_config.channel = channel;
5858
ap_config.band = WIFI_FREQ_BAND_2_4_GHZ;
59-
ap_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
59+
ap_config.bandwidth = WIFI_FREQ_BANDWIDTH_20MHZ;
6060

6161
int ret = net_mgmt(NET_REQUEST_WIFI_AP_ENABLE, ap_iface, &ap_config,
6262
sizeof(struct wifi_connect_req_params));
@@ -82,7 +82,7 @@ class WiFiClass: public NetworkInterface
8282
return WL_NO_SHIELD;
8383
}
8484

85-
if (sta_state.state >= WIFI_STATE_ASSOCIATED) {
85+
if (sta_state.state >= WIFI_STATE_ASSOCIATED) {
8686
return WL_CONNECTED;
8787
} else {
8888
return WL_DISCONNECTED;

0 commit comments

Comments
 (0)