We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44a7df2 commit 99c3954Copy full SHA for 99c3954
1 file changed
internal_filesystem/main.py
@@ -44,7 +44,15 @@
44
if focusgroup: # on esp32 this may not be set
45
focusgroup.remove_all_objs() # might be better to save and restore the group for "back" actions
46
47
-mpos.ui.th = task_handler.TaskHandler(duration=5) # 5ms is recommended for MicroPython+LVGL on desktop
+# Can be passed to TaskHandler, currently unused:
48
+def custom_exception_handler(e):
49
+ print(f"custom_exception_handler called: {e}")
50
+ mpos.ui.th.deinit()
51
+ # otherwise it does focus_next and then crashes while doing lv.deinit()
52
+ focusgroup.remove_all_objs()
53
+ focusgroup.delete()
54
+
55
+mpos.ui.th = task_handler.TaskHandler(duration=1) # 5ms is recommended for MicroPython+LVGL on desktop but lower gives higher framerate
56
57
try:
58
import freezefs_mount_builtin
0 commit comments