Skip to content

Commit 585022e

Browse files
SuGliderme-no-dev
authored andcommitted
fix(wps): adds memset to 0
1 parent de11207 commit 585022e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/WiFi/examples/WPS/WPS.ino

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ WPS (pin is 00000000)
2626

2727
void wpsStart() {
2828
esp_wps_config_t config;
29+
memset(&config, 0, sizeof(esp_wps_config_t));
2930
//Same as config = WPS_CONFIG_INIT_DEFAULT(ESP_WPS_MODE);
3031
config.wps_type = ESP_WPS_MODE;
3132
strcpy(config.factory_info.manufacturer, "ESPRESSIF");

0 commit comments

Comments
 (0)