Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a58393

Browse files
committedSep 3, 2024·
fix(scan): Make sure scan struct is cleared before set
1 parent e70f4d3 commit 2a58393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎libraries/WiFi/src/WiFiScan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int16_t
7777
scanDelete();
7878

7979
wifi_scan_config_t config;
80+
memset(&config, 0, sizeof(wifi_scan_config_t));
8081
config.ssid = (uint8_t *)ssid;
8182
config.bssid = (uint8_t *)bssid;
8283
config.channel = channel;

0 commit comments

Comments
 (0)
Please sign in to comment.