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 <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-04-04 15:07:45 +02:00 committed by Alberto Escolar
commit d27842c953

View file

@ -497,6 +497,7 @@ static int api_rx_enable(const struct device *dev, uint8_t *buf, size_t len, int
* flags are already known to the driver (e.g. if flushed data shall be
* kept or not).
*/
adata->err = 0;
adata->en_rx_buf = buf;
adata->en_rx_len = len;