Skip to content

Commit

Permalink
Added enableWiFiAtBootTime() to enable legacy wifi persistence (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrott authored Jun 18, 2021
1 parent 9827c13 commit 7f82a04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pio/src/iSpindel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,12 @@ void setup()
initDS18B20();
initAccel();

#ifdef WIFI_IS_OFF_AT_BOOT
// persistence is disabled by default and WiFi does not start automatically at boot
// source: https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/generic-class.html#persistent
enableWiFiAtBootTime();
#endif

// decide whether we want configuration mode or normal mode
if (shouldStartConfig(validConf))
{
Expand Down

0 comments on commit 7f82a04

Please sign in to comment.