mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
fix: added delay before start web server
This commit is contained in:
@@ -582,6 +582,10 @@ protected:
|
||||
void loop() {
|
||||
// web server
|
||||
if (!this->stateWebServer() && (network->isApEnabled() || network->isConnected()) && millis() - this->webServerChangeState >= this->changeStateInterval) {
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
this->delay(250);
|
||||
#endif
|
||||
|
||||
this->startWebServer();
|
||||
Log.straceln(FPSTR(L_PORTAL_WEBSERVER), F("Started: AP up or STA connected"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user