Skip to content

Commit

Permalink
Formatting cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cossid committed Nov 19, 2023
1 parent f20c4e0 commit 902ce76
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ bool WiFiClass::config(IPAddress localIP, IPAddress gateway, IPAddress subnet, I
sprintf(STA_CFG.dns_server_ip_addr, IP_FMT, dns1[0], dns1[1], dns1[2], dns1[3]);
sprintf(STA_ADV_CFG.dns_server_ip_addr, IP_FMT, dns1[0], dns1[1], dns1[2], dns1[3]);
} else {
STA_CFG.dns_server_ip_addr[0] = '\0';
STA_CFG.dns_server_ip_addr[0] = '\0';
STA_ADV_CFG.dns_server_ip_addr[0] = '\0';
}
} else {
STA_CFG.local_ip_addr[0] = '\0';
STA_CFG.net_mask[0] = '\0';
STA_CFG.gateway_ip_addr[0] = '\0';
STA_CFG.dns_server_ip_addr[0] = '\0';
STA_CFG.local_ip_addr[0] = '\0';
STA_CFG.net_mask[0] = '\0';
STA_CFG.gateway_ip_addr[0] = '\0';
STA_CFG.dns_server_ip_addr[0] = '\0';
STA_ADV_CFG.local_ip_addr[0] = '\0';
STA_ADV_CFG.net_mask[0] = '\0';
STA_ADV_CFG.gateway_ip_addr[0] = '\0';
Expand Down Expand Up @@ -116,7 +116,6 @@ bool WiFiClass::reconnect(const uint8_t *bssid) {
} else {
bk_wlan_start_sta(&STA_CFG);
}

__wrap_bk_printf_enable();

LT_DM(WIFI, "Start OK");
Expand Down

0 comments on commit 902ce76

Please sign in to comment.