From 5ebff8842e0af90c7176be297351a96f24184eeb Mon Sep 17 00:00:00 2001 From: bogdan Date: Tue, 19 Dec 2023 19:39:26 +0200 Subject: [PATCH] fixed gprs default state after clear config --- src/SysConfiguration.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SysConfiguration.c b/src/SysConfiguration.c index c0758fc..2bb45e1 100644 --- a/src/SysConfiguration.c +++ b/src/SysConfiguration.c @@ -333,7 +333,10 @@ esp_netif_str_to_ip4(CONFIG_WEBGUIAPP_DNS3_ADDRESS_DEFAULT, (esp_ip4_addr_t*) &C #endif #if CONFIG_WEBGUIAPP_GPRS_ENABLE +Conf->gsmSettings.Flags1.bIsGSMEnabled = false; +#if CONFIG_WEBGUIAPP_GPRS_ON Conf->gsmSettings.Flags1.bIsGSMEnabled = true; +#endif memcpy(Conf->gsmSettings.APN, CONFIG_MODEM_PPP_APN,sizeof(CONFIG_MODEM_PPP_APN)); memcpy(Conf->gsmSettings.login, CONFIG_MODEM_PPP_APN,sizeof(CONFIG_MODEM_PPP_APN)); memcpy(Conf->gsmSettings.password, CONFIG_MODEM_PPP_APN,sizeof(CONFIG_MODEM_PPP_APN));