Skip to content

Commit 6f414fd

Browse files
korken89japaric
andauthored
Update ci/dma/examples/four.rs
Co-Authored-By: japaric <[email protected]>
1 parent f5410d1 commit 6f414fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/dma/examples/four.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<B> Transfer<B> {
5353
/// Blocks until the transfer is done and returns the buffer
5454
pub fn wait(self) -> (B, Serial1) {
5555
// NOTE: this is a volatile *read*
56-
while self.is_done() {}
56+
while !self.is_done() {}
5757

5858
// NOTE: added
5959
atomic::compiler_fence(Ordering::Acquire);

0 commit comments

Comments
 (0)