8000 Fix bug when deciding if task response will be send in xRxQueue based… · sfabris/pycom-micropython-sigfox@4312085 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4312085

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

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)
0