Skip to content

Commit

Permalink
Add delay before WiFi startup
Browse files Browse the repository at this point in the history
In #256 a user reports intermittant issues at boot with his board which appear likely due to a bad power supply. This attempts to give the power supply time to recharge any attached capacitors between initializing the LCD and initializing the WiFi
  • Loading branch information
thorrak committed Mar 3, 2024
1 parent 8542187 commit 790ae99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
- no_std_strings
- slow_load
# tags:
# - "v*"
# pull_request:
Expand Down
1 change: 1 addition & 0 deletions src/wifi_setup.cpp
Expand Up @@ -53,6 +53,7 @@ void mdnsReset() {
}

void initWiFi() {
delay(250); // Seeing if this helps prevent a brownout with bad power supplies

WiFi.mode(WIFI_STA); // Explicitly set mode, ESP defaults to STA+AP

Expand Down

0 comments on commit 790ae99

Please sign in to comment.