浏览代码

Sleep before restarting to give respone a chance to transmit

Christopher Mullins 8 年之前
父节点
当前提交
e8030f6d96
共有 1 个文件被更改,包括 2 次插入0 次删除
  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](){