Skip to content

Conversation

@jackspence7
Copy link
Contributor

Added delay before ESP32 DNS initialization to prevent crashes

Added a 100ms delay before checking WiFi AP IP status in the NetWizard loop function. This delay prevents crashes that were occurring when selecting WiFi access points by ensuring the WiFi system has adequate time to initialize before starting the DNS server.

Changes:

  • Added 100ms delay before ESP32 condition check in NetWizard::loop()
  • Helps prevent race condition between WiFi AP initialization and DNS server setup

Added delay before ESP32 DNS initialization to prevent crashes

Added a 100ms delay before checking WiFi AP IP status in the NetWizard loop function. 
This delay prevents crashes that were occurring when selecting WiFi access points by 
ensuring the WiFi system has adequate time to initialize before starting the DNS server.

Changes:
- Added 100ms delay before ESP32 condition check in NetWizard::loop()
- Helps prevent race condition between WiFi AP initialization and DNS server setup
@ayushsharma82 ayushsharma82 changed the base branch from main to dev January 10, 2025 11:07
@ayushsharma82 ayushsharma82 merged commit 4e98789 into ayushsharma82:dev Jan 10, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants