Skip to content

Commit

Permalink
fix is_pending logical error (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdinAck authored Mar 17, 2024
1 parent ebf0a15 commit 096121a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exti.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl ExtiExt for EXTI {
SignalEdge::Rising => self.rpr1.read().bits() & mask != 0,
SignalEdge::Falling => self.fpr1.read().bits() & mask != 0,
SignalEdge::All => {
(self.rpr1.read().bits() & mask != 0) && (self.fpr1.read().bits() & mask != 0)
(self.rpr1.read().bits() & mask != 0) || (self.fpr1.read().bits() & mask != 0)
}
}
}
Expand Down

0 comments on commit 096121a

Please sign in to comment.