Skip to content

Commit 195d772

Browse files
author
Martin O'Hanlon
committed
fix recalcuating bound time
1 parent 3a17c62 commit 195d772

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)