From 9fca7f296f278feac04a888920fc299f537b244d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 17 Feb 2023 18:52:54 +0200 Subject: [PATCH] disabled network ready waiting for prevent delayed return from the main webguiapp process --- src/WebGUIAppMain.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/WebGUIAppMain.c b/src/WebGUIAppMain.c index ee5910f..23b7a9f 100644 --- a/src/WebGUIAppMain.c +++ b/src/WebGUIAppMain.c @@ -155,24 +155,7 @@ esp_err_t WebGuiAppInit(void) /*Start services depends on client connection*/ #if CONFIG_WEBGUIAPP_GPRS_ENABLE || CONFIG_WEBGUIAPP_ETHERNET_ENABLE || CONFIG_WEBGUIAPP_WIFI_ENABLE - //start all services no depends on network ready ESP_ERROR_CHECK(start_file_server()); - //Wait for network ready - while (!( - -#ifdef CONFIG_WEBGUIAPP_GPRS_ENABLE - isPPPConnected() || -#endif -#ifdef CONFIG_WEBGUIAPP_WIFI_ENABLE - isWIFIConnected() || - #endif -#ifdef CONFIG_WEBGUIAPP_ETHERNET_ENABLE - isETHConnected() || -#endif - ++NetworkStartTimeout >= NETWORK_START_TIMEOUT)) - vTaskDelay(pdMS_TO_TICKS(1000)); - - //Network ready or network not available now, but maybe restore later StartTimeGet(); //mDNSServiceStart(); @@ -184,7 +167,6 @@ esp_err_t WebGuiAppInit(void) } #endif #endif - return ESP_OK; }