Skip to content

Commit d27842c

Browse files
nordic-krchaescolar
authored andcommitted
drivers: serial: nrfx_uarte2: Clean error state on rx_enable
Clean error state on re-enabling RX. If previous transmission ended with an error it should not impact next receiving session. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 05e6bcf commit d27842c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/serial/uart_nrfx_uarte2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ static int api_rx_enable(const struct device *dev, uint8_t *buf, size_t len, int
497497
* flags are already known to the driver (e.g. if flushed data shall be
498498
* kept or not).
499499
*/
500+
adata->err = 0;
500501
adata->en_rx_buf = buf;
501502
adata->en_rx_len = len;
502503

0 commit comments

Comments
 (0)