Skip to content
Snippets Groups Projects
Commit 7a95528b authored by Pixtxa's avatar Pixtxa
Browse files

Bugfix

parent a924fdad
No related branches found
No related tags found
No related merge requests found
...@@ -90,9 +90,9 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG ...@@ -90,9 +90,9 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG
yield buttons.TOP_RIGHT yield buttons.TOP_RIGHT
if ( if (
not still_pressed not still_pressed
and long_press_ms and long_press_ms
and time.time_ms() - t0 <= long_press_ms: and ((time.time_ms() - t0) <= long_press_ms)
): ):
pass pass
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment