From 1fde1a6fd4c88d247da56932e10b3a311b9bf664 Mon Sep 17 00:00:00 2001 From: Nikos Ftylitakis Date: Mon, 13 Apr 2020 12:27:31 +0300 Subject: [PATCH] Fix bug when deciding if task response will be send in xRxQueue based on expect_continuation flag. --- esp32/lte/lteppp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp32/lte/lteppp.c b/esp32/lte/lteppp.c index 2823d3f7d1..80043df946 100644 --- a/esp32/lte/lteppp.c +++ b/esp32/lte/lteppp.c @@ -528,8 +528,9 @@ static void TASK_LTE (void *pvParameters) { xSemaphoreGive(xLTESem); state = lteppp_get_state(); if (xQueueReceive(xCmdQueue, lteppp_trx_buffer, 0)) { + bool expect_continuation = lte_task_cmd->expect_continuation; lteppp_send_at_cmd_exp(lte_task_cmd->data, lte_task_cmd->timeout, NULL, &(lte_task_rsp->data_remaining), lte_task_cmd->dataLen, lte_task_cmd->expect_continuation); - if(!lte_task_cmd->expect_continuation) + if(!expect_continuation) xQueueSend(xRxQueue, (void *)lte_task_rsp, (TickType_t)portMAX_DELAY); } else if(state == E_LTE_PPP && lte_uart_break_evt)