We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cc52e commit bed63a9Copy full SHA for bed63a9
nrf-hal-common/src/uarte.rs
@@ -633,6 +633,11 @@ pub mod serial {
633
Err(nb::Error::WouldBlock)
634
}
635
} else {
636
+ // No need to trigger transmit if we don't have anything written
637
+ if self.written == 0 {
638
+ return Ok(());
639
+ }
640
+
641
// Conservative compiler fence to prevent optimizations that do not
642
// take in to account actions by DMA. The fence has been placed here,
643
// before any DMA action has started.
0 commit comments