diff options
-rw-r--r-- | src/peripheral/itm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/itm.rs b/src/peripheral/itm.rs index 0b63524..57d2ff8 100644 --- a/src/peripheral/itm.rs +++ b/src/peripheral/itm.rs @@ -55,6 +55,6 @@ impl Stim { /// Returns `true` if the stimulus port is ready to accept more data #[inline] pub fn is_fifo_ready(&self) -> bool { - unsafe { ptr::read_volatile(self.register.get()) == 1 } + unsafe { ptr::read_volatile(self.register.get()) & 1 == 1 } } } |