Skip to content

Commit 18dc5ff

Browse files
committed
Fix is_done() always returns true
1 parent a03e521 commit 18dc5ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nrf-hal-common/src/twis.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ impl<T: Instance, B> Transfer<T, B> {
518518
.inner
519519
.as_mut()
520520
.unwrap_or_else(|| unsafe { core::hint::unreachable_unchecked() });
521-
inner.twis.is_done();
522-
true
521+
inner.twis.is_done()
523522
}
524523
}
525524

@@ -561,4 +560,4 @@ mod _twis1 {
561560
impl Instance for TWIS1 {
562561
const INTERRUPT: Interrupt = Interrupt::SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1;
563562
}
564-
}
563+
}

0 commit comments

Comments
 (0)