Skip to content

Commit

Permalink
Fix LPUART blocking/unblocking in AT commands that read data
Browse files Browse the repository at this point in the history
  • Loading branch information
janakj committed May 18, 2024
1 parent dea35bb commit 7220b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/atci.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ static void finish_next_data(atci_data_status_t status)
}

state.rx_length = 0;

if (!sysconf.async_uart) lpuart_pause_tx();
}


Expand Down Expand Up @@ -341,7 +343,7 @@ static void process_command(void)
lpuart_write_blocking(ATCI_UNKNOWN_CMD, ATCI_UKNOWN_CMD_LEN);

done:
if (!sysconf.async_uart) lpuart_pause_tx();
if (!sysconf.async_uart && !state.read_next_data.length) lpuart_pause_tx();
}


Expand Down

0 comments on commit 7220b7b

Please sign in to comment.