From 79a2f879198bb3821e608bd2f9362b11e7416ca0 Mon Sep 17 00:00:00 2001 From: Pixtxa <pixtxa+gitlab@vspace.one> Date: Sat, 19 Dec 2020 21:47:05 +0000 Subject: [PATCH] LINT! --- pycardium/modules/py/simple_menu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pycardium/modules/py/simple_menu.py b/pycardium/modules/py/simple_menu.py index 853950195..723a8c3a1 100644 --- a/pycardium/modules/py/simple_menu.py +++ b/pycardium/modules/py/simple_menu.py @@ -21,6 +21,7 @@ except OSError: """:py:func:`~simple_menu.button_events` timeout marker.""" + def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIGGER_MS): """ Iterate over button presses (event-loop). @@ -88,7 +89,7 @@ def button_events(timeout=None, long_press_ms=LONG_PRESS_MS, retrigger_ms=RETRIG if v & buttons.TOP_RIGHT: yield buttons.TOP_RIGHT - + if ( not still_pressed and long_press_ms -- GitLab