Skip to content

Commit 096f60a

Browse files
Run /builtin/system/button.py after mounting /builtin
1 parent e1727e9 commit 096f60a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal_filesystem/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,14 @@ def restart_launcher():
395395
# No need to stop the other launcher first, because it exits after building the screen
396396
start_app_by_name("com.example.launcher", True)
397397

398-
# Execute these if they exist:
399398
execute_script_new_thread("/autorun.py", True, False, False) # Generic run-at-boot script, for development
400-
execute_script_new_thread("/builtin/system/button.py", True, False, False) # Button handling through IRQ
401399

402400
try:
403401
import freezefs_mount_builtin
404402
except Exception as e:
405403
print("/main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
406404

405+
execute_script_new_thread("/builtin/system/button.py", True, False, False) # Button handling through IRQ
407406

408407
# A generic "start at boot" mechanism hasn't been implemented yet, so do it like this:
409408
import uos

0 commit comments

Comments
 (0)