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
yield buttons.TOP_RIGHT
if (
not still_pressed
and long_press_ms
and time.time_ms() - t0 <= long_press_ms:
not still_pressed
and long_press_ms
and ((time.time_ms() - t0) <= long_press_ms)
):
pass
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment