From bd1afb4ffcdb08212b95571e550ebd2336f249b6 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 8 Oct 2025 08:22:52 +0200 Subject: [PATCH] fri3d-2024: fix back button hang --- internal_filesystem/boot_fri3d-2024.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal_filesystem/boot_fri3d-2024.py b/internal_filesystem/boot_fri3d-2024.py index b69e5518..1bec7c1b 100644 --- a/internal_filesystem/boot_fri3d-2024.py +++ b/internal_filesystem/boot_fri3d-2024.py @@ -120,8 +120,8 @@ def read_joystick(): # Key repeat configuration # This whole debounce logic is only necessary because LVGL 9.2.2 seems to have an issue where # the lv_keyboard widget doesn't handle PRESSING (long presses) properly, it loses focus. -REPEAT_INITIAL_DELAY_MS = 500 # Delay before first repeat -REPEAT_RATE_MS = 200 # Interval between repeats +REPEAT_INITIAL_DELAY_MS = 300 # Delay before first repeat +REPEAT_RATE_MS = 100 # Interval between repeats last_key = None last_state = lv.INDEV_STATE.RELEASED key_press_start = 0 # Time when key was first pressed @@ -133,6 +133,7 @@ last_repeat_time = 0 # Time of last repeat event def keypad_read_cb(indev, data): global last_key, last_state, key_press_start, last_repeat_time data.continue_reading = False + since_last_repeat = 0 # Check buttons and joystick current_key = None