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)