From 55474b81146327e8cfa7702fa9366cc7da6562e7 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 30 Mar 2022 13:22:57 +0200 Subject: sock api fixed; net reply messages fixed --- fw/esp32/components/eos/cell_modem.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fw/esp32/components/eos/cell_modem.c') diff --git a/fw/esp32/components/eos/cell_modem.c b/fw/esp32/components/eos/cell_modem.c index f5ee0a9..09d65d9 100644 --- a/fw/esp32/components/eos/cell_modem.c +++ b/fw/esp32/components/eos/cell_modem.c @@ -302,8 +302,7 @@ static void modem_event_task(void *pvParameters) { default: break; } - - /* Obsolete!!! + /* Obsolete uint64_t t_start = esp_timer_get_time(); if (xQueueReceive(modem_queue, &level, 200 / portTICK_RATE_MS) && (level == 1)) { uint64_t t_end = esp_timer_get_time(); @@ -312,7 +311,6 @@ static void modem_event_task(void *pvParameters) { ESP_LOGI(TAG, "RING"); } */ - } } vTaskDelete(NULL); @@ -530,8 +528,9 @@ static int ppp_resume(void) { static int ppp_setup(void) { int r; char cmd[64]; - int cmd_len = snprintf(cmd, sizeof(cmd), "AT+CGDCONT=1,\"IP\",\"%s\"\r", ppp_apn); + int cmd_len; + cmd_len = snprintf(cmd, sizeof(cmd), "AT+CGDCONT=1,\"IP\",\"%s\"\r", ppp_apn); if ((cmd_len < 0) || (cmd_len >= sizeof(cmd))) return EOS_ERR; modem_set_mode(EOS_CELL_UART_MODE_NONE); -- cgit v1.2.3