Skip to content

Commit 22985ae

Browse files
committed
disable interrupt in poll mode
1 parent e94923c commit 22985ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/QuadRotary/QuadRotary.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public final class QuadRotary {
7979
_mode = mode
8080
switch _mode {
8181
case .poll:
82+
for i in 0..<QuadRotary.NumEncoders {
83+
try seeSaw.disableInterrupt(encoder: i)
84+
}
8285
_interrupt = nil
8386
case let .interrupt(pin):
8487
for i in 0..<QuadRotary.NumEncoders {

0 commit comments

Comments
 (0)