Skip to content

Commit

Permalink
ESP8266WiFi: zero-initialise scan_config structure
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Feb 20, 2018
1 parent 0a000fe commit 28d8a41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libraries/ESP8266WiFi/src/ESP8266WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ int8_t ESP8266WiFiScanClass::scanNetworks(bool async, bool show_hidden) {
scanDelete();

struct scan_config config;
config.ssid = 0;
config.bssid = 0;
config.channel = 0;
memset(&config, 0, sizeof(config));
config.show_hidden = show_hidden;
if(wifi_station_scan(&config, reinterpret_cast<scan_done_cb_t>(&ESP8266WiFiScanClass::_scanDone))) {
ESP8266WiFiScanClass::_scanComplete = false;
Expand Down

0 comments on commit 28d8a41

Please sign in to comment.