Skip to content

Commit 84a6b59

Browse files
authored
Merge pull request #104 from martinohanlon/issue-101
Resolve issue 101 - digitalinputdevice bounce time
2 parents cab7a3f + 195d772 commit 84a6b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picozero/picozero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ def _pin_change(self, p):
15981598
while ticks_ms() < stop:
15991599
# keep checking, reset the stop if the value changes
16001600
if p.value() != last_state:
1601-
stop = ticks_ms() + self._bounce_time
1601+
stop = ticks_ms() + (self._bounce_time * 1000)
16021602
last_state = p.value()
16031603

16041604
# re-enable the interupt

0 commit comments

Comments
 (0)