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

Bugfix

parent a924fdad
Branches
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG ...@@ -92,7 +92,7 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG
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