We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f73087 commit f172579Copy full SHA for f172579
v3/primitives/pushbutton.py
@@ -104,4 +104,5 @@ async def buttoncheck(self):
104
self._ld.stop() # Avoid interpreting a second click as a long push
105
self._dblran = False
106
# Ignore state changes until switch has settled
107
+ # See https://github.com/peterhinch/micropython-async/issues/69
108
await asyncio.sleep_ms(Pushbutton.debounce_ms)
v3/primitives/switch.py
@@ -39,4 +39,5 @@ async def switchcheck(self):
39
elif state == 1 and self._open_func:
40
launch(self._open_func, self._open_args)
41
# Ignore further state changes until switch has settled
42
43
await asyncio.sleep_ms(Switch.debounce_ms)
0 commit comments