From 353c9ce606c4818f0d20ec2244e934f848bd08fe Mon Sep 17 00:00:00 2001 From: Bogdan Pilyugin Date: Tue, 11 Oct 2022 16:39:33 +0200 Subject: [PATCH] crash of gsm module start, depends on queue of modules starting --- src/SystemConfiguration.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/SystemConfiguration.c b/src/SystemConfiguration.c index 33f3359..ead237d 100644 --- a/src/SystemConfiguration.c +++ b/src/SystemConfiguration.c @@ -105,11 +105,7 @@ esp_err_t WebGuiAppInit(void) //init rom file system init_rom_fs("/espfs"); -#if CONFIG_WEBGUIAPP_GPRS_ENABLE - /*Start PPP modem*/ - if (GetSysConf()->gsmSettings.Flags1.bIsGSMEnabled) - PPPModemStart(); -#endif + #if CONFIG_WEBGUIAPP_ETHERNET_ENABLE /*Start Ethernet connection*/ @@ -117,6 +113,12 @@ esp_err_t WebGuiAppInit(void) EthStart(); #endif +#if CONFIG_WEBGUIAPP_GPRS_ENABLE + /*Start PPP modem*/ + if (GetSysConf()->gsmSettings.Flags1.bIsGSMEnabled) + PPPModemStart(); +#endif + #if CONFIG_WEBGUIAPP_WIFI_ENABLE /*Start WiFi connection*/ if (GetSysConf()->wifiSettings.Flags1.bIsWiFiEnabled) @@ -128,6 +130,8 @@ esp_err_t WebGuiAppInit(void) } #endif + + bool WiFiApOnly = false; #if !CONFIG_WEBGUIAPP_GPRS_ENABLE && !CONFIG_WEBGUIAPP_ETHERNET_ENABLE && CONFIG_WEBGUIAPP_WIFI_ENABLE if(GetSysConf()->wifiSettings.Flags1.bIsAP)