button handler: explicitly set stack size

This commit is contained in:
Thomas Farstrike
2025-05-13 13:56:18 +02:00
parent 5b240d9a7e
commit 96778cf1e6
@@ -34,6 +34,7 @@ def on_long_press(t): # Callback for when long press duration is reached.
timer.deinit() # Stop the timer
global is_pressed
if is_pressed and button.value() == 0: # Ensure button is still pressed
_thread.stack_size(12*1024)
_thread.start_new_thread(handle_long_press, ())
else:
is_pressed = False