Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 1fde1a6

Browse files
committed
Fix bug when deciding if task response will be send in xRxQueue based on expect_continuation flag.
1 parent 1ddb6cb commit 1fde1a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esp32/lte/lteppp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,9 @@ static void TASK_LTE (void *pvParameters) {
528528
xSemaphoreGive(xLTESem);
529529
state = lteppp_get_state();
530530
if (xQueueReceive(xCmdQueue, lteppp_trx_buffer, 0)) {
531+
bool expect_continuation = lte_task_cmd->expect_continuation;
531532
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);
532-
if(!lte_task_cmd->expect_continuation)
533+
if(!expect_continuation)
533534
xQueueSend(xRxQueue, (void *)lte_task_rsp, (TickType_t)portMAX_DELAY);
534535
}
535536
else if(state == E_LTE_PPP && lte_uart_break_evt)

0 commit comments

Comments
 (0)