Initialize network before HASP #342

This commit is contained in:
fvanroie 2022-07-02 20:11:45 +02:00
parent 1981b1f89e
commit 8fa7a43f2e

View File

@ -55,6 +55,11 @@ void setup()
configSetup(); // also runs debugSetup(), debugStart() and consoleSetup() configSetup(); // also runs debugSetup(), debugStart() and consoleSetup()
#endif #endif
#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0
networkSetup();
timeSetup();
#endif
dispatchSetup(); // before hasp and oobe, asap after logging starts dispatchSetup(); // before hasp and oobe, asap after logging starts
guiSetup(); guiSetup();
@ -78,10 +83,7 @@ void setup()
gpioSetup(); gpioSetup();
#endif #endif
#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0
networkSetup();
timeSetup();
#endif
#if HASP_USE_MDNS > 0 #if HASP_USE_MDNS > 0
mdnsSetup(); mdnsSetup();