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

Commit

Permalink
Fix bug when deciding if task response will be send in xRxQueue based…
Browse files Browse the repository at this point in the history
… on expect_continuation flag.
  • Loading branch information
ftylitak committed Apr 13, 2020
1 parent 1ddb6cb commit 1fde1a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp32/lte/lteppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1fde1a6

Please sign in to comment.