Skip to content

Commit 016fcf7

Browse files
lulfhargoniX
authored andcommitted
Call flush if write buffer is full
1 parent 39395df commit 016fcf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf-hal-common/src/uarte.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ where
618618
self.written += 1;
619619
Ok(())
620620
} else {
621-
Err(nb::Error::WouldBlock)
621+
self.flush()
622622
}
623623
}
624624

0 commit comments

Comments
 (0)