From 8fa7a43f2eabcee3c43861d314c0796c4d15e87a Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 2 Jul 2022 20:11:45 +0200 Subject: [PATCH] Initialize network before HASP #342 --- src/main_arduino.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main_arduino.cpp b/src/main_arduino.cpp index 201c8239..aa57f9f0 100644 --- a/src/main_arduino.cpp +++ b/src/main_arduino.cpp @@ -55,6 +55,11 @@ void setup() configSetup(); // also runs debugSetup(), debugStart() and consoleSetup() #endif +#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0 + networkSetup(); + timeSetup(); +#endif + dispatchSetup(); // before hasp and oobe, asap after logging starts guiSetup(); @@ -78,10 +83,7 @@ void setup() gpioSetup(); #endif -#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0 - networkSetup(); - timeSetup(); -#endif + #if HASP_USE_MDNS > 0 mdnsSetup();