Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 authored Jan 3, 2024
1 parent a7296e8 commit ddc9cdb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cores/beken-72xx/arduino/libraries/WiFi/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ WiFiClass::begin(const char *ssid, const char *passphrase, int32_t channel, cons

if (bssid) {
strcpy(STA_ADV_CFG.ap_info.ssid, ssid);
memcpy(STA_ADV_CFG.ap_info.bssid, bssid, 6);
if (passphrase) {
strcpy(STA_ADV_CFG.key, passphrase);
STA_ADV_CFG.key_len = strlen(passphrase);
Expand All @@ -27,7 +26,6 @@ WiFiClass::begin(const char *ssid, const char *passphrase, int32_t channel, cons
STA_ADV_CFG.wifi_retry_interval = 100;
} else {
strcpy(STA_CFG.wifi_ssid, ssid);
memset(STA_CFG.wifi_bssid, 0x00, 6);
if (passphrase) {
strcpy(STA_CFG.wifi_key, passphrase);
} else {
Expand Down

0 comments on commit ddc9cdb

Please sign in to comment.