Skip to content

Commit 09cc52e

Browse files
committed
Ensure write pointer is reset
1 parent fbe9d3e commit 09cc52e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nrf-hal-common/src/uarte.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ pub mod serial {
613613
if endtx || txstopped {
614614
// We are done, cleanup the state.
615615
uarte.events_txstarted.reset();
616+
self.written = 0;
616617
// Conservative compiler fence to prevent optimizations that do not
617618
// take in to account actions by DMA. The fence has been placed here,
618619
// after all possible DMA actions have completed.

0 commit comments

Comments
 (0)