Skip to content

Commit 096121a

Browse files
authored
fix is_pending logical error (#144)
1 parent ebf0a15 commit 096121a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exti.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl ExtiExt for EXTI {
169169
SignalEdge::Rising => self.rpr1.read().bits() & mask != 0,
170170
SignalEdge::Falling => self.fpr1.read().bits() & mask != 0,
171171
SignalEdge::All => {
172-
(self.rpr1.read().bits() & mask != 0) && (self.fpr1.read().bits() & mask != 0)
172+
(self.rpr1.read().bits() & mask != 0) || (self.fpr1.read().bits() & mask != 0)
173173
}
174174
}
175175
}

0 commit comments

Comments
 (0)