Skip to content

Commit

Permalink
fix(scan): Make sure scan struct is cleared before set (#10282)
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev authored Sep 9, 2024
1 parent 976bda6 commit e964a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/WiFi/src/WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int16_t
scanDelete();

wifi_scan_config_t config;
memset(&config, 0, sizeof(wifi_scan_config_t));
config.ssid = (uint8_t *)ssid;
config.bssid = (uint8_t *)bssid;
config.channel = channel;
Expand Down

0 comments on commit e964a2d

Please sign in to comment.