diff --git a/include/NetTransport.h b/include/NetTransport.h index 5b79d59..38f9c3b 100644 --- a/include/NetTransport.h +++ b/include/NetTransport.h @@ -29,7 +29,6 @@ #include "freertos/event_groups.h" #include "mqtt_client.h" #include "esp_netif.h" -//#include "esp_modem_api.h" #include "esp_log.h" typedef struct diff --git a/src/GSMTransport.c b/src/GSMTransport.c index 5bacda8..80def1a 100644 --- a/src/GSMTransport.c +++ b/src/GSMTransport.c @@ -202,8 +202,8 @@ static void GSMInitTask(void *pvParameter) } ESP_LOGI(TAG, "IMSI:%s", mod_info.imsi); - mod_info.oper[0] = 0x00; - while (esp_modem_get_operator_name(dce, mod_info.oper) != ESP_OK) + mod_info.oper[0] = 0x00; int tech = 0; + while (esp_modem_get_operator_name(dce, mod_info.oper, &tech) != ESP_OK) { if (++GSMConnectTimeout >= PPP_MODEM_TIMEOUT) goto modem_init_fail; diff --git a/src/HTTPPostSystem.c b/src/HTTPPostSystem.c index 6153109..d5cc803 100644 --- a/src/HTTPPostSystem.c +++ b/src/HTTPPostSystem.c @@ -182,7 +182,6 @@ static HTTP_IO_RESULT HTTPPostAdaptersSettings(httpd_req_t *req, char *PostData) #endif #if CONFIG_WEBGUIAPP_GPRS_ENABLE - char tmp[32]; bool TempIsGSMEnabled = false; if (httpd_query_key_value(PostData, "gsmen", tmp, sizeof(tmp)) == ESP_OK) {