Skip to content

Commit d84e1fe

Browse files
committed
Ensure write pointer is reset
1 parent 5da3e9b commit d84e1fe

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
@@ -611,6 +611,7 @@ pub mod serial {
611611
if endtx || txstopped {
612612
// We are done, cleanup the state.
613613
uarte.events_txstarted.reset();
614+
self.written = 0;
614615
// Conservative compiler fence to prevent optimizations that do not
615616
// take in to account actions by DMA. The fence has been placed here,
616617
// after all possible DMA actions have completed.

0 commit comments

Comments
 (0)