Skip to content

Commit 96778cf

Browse files
button handler: explicitly set stack size
1 parent 5b240d9 commit 96778cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal_filesystem/builtin/system/button.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def on_long_press(t): # Callback for when long press duration is reached.
3434
timer.deinit() # Stop the timer
3535
global is_pressed
3636
if is_pressed and button.value() == 0: # Ensure button is still pressed
37+
_thread.stack_size(12*1024)
3738
_thread.start_new_thread(handle_long_press, ())
3839
else:
3940
is_pressed = False

0 commit comments

Comments
 (0)