Sfoglia il codice sorgente

Sleep before restarting to give respone a chance to transmit

Christopher Mullins 8 anni fa
parent
commit
e8030f6d96
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      lib/WebServer/MiLightHttpServer.cpp

+ 2 - 0
lib/WebServer/MiLightHttpServer.cpp

@@ -48,6 +48,8 @@ void MiLightHttpServer::begin() {
         );
       }
 
+      delay(1000);
+
       ESP.restart();
     },
     [this](){