fix(wps): adds memset to 0 · espressif/arduino-esp32@585022e (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 585022e
authored and
committed
fix(wps): adds memset to 0
File tree
1 file changed
lines changed
- libraries/WiFi/examples/WPS
1 file changed
lines changed
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -26,6 +26,7 @@ WPS (pin is 00000000) | ||
26 | 26 | |
27 | 27 | void wpsStart() { |
28 | 28 | esp_wps_config_t config; |
29 | +memset(&config, 0, sizeof(esp_wps_config_t)); | |
29 | 30 | //Same as config = WPS_CONFIG_INIT_DEFAULT(ESP_WPS_MODE); |
30 | 31 | config.wps_type = ESP_WPS_MODE; |
31 | 32 | strcpy(config.factory_info.manufacturer, "ESPRESSIF"); |