diff --git a/pycardium/modules/py/simple_menu.py b/pycardium/modules/py/simple_menu.py index 853950195cc402113b2d242a9ce84d307ad84abe..723a8c3a18e9c46b1c5bcf6c423bf102bbb2431f 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