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:
parent
05e6bcfae6
commit
d27842c953
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue