You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
fix launcher startup and tweak menu drawer
This commit is contained in:
@@ -204,6 +204,7 @@ def create_drawer(display=None):
|
||||
drawer.set_size(lv.pct(100),lv.pct(90))
|
||||
drawer.set_pos(0,NOTIFICATION_BAR_HEIGHT)
|
||||
drawer.set_scroll_dir(lv.DIR.VER)
|
||||
drawer.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF)
|
||||
drawer.set_style_pad_all(15, 0)
|
||||
drawer.set_style_border_width(0, 0)
|
||||
drawer.set_style_radius(0, 0)
|
||||
|
||||
@@ -44,19 +44,16 @@ except Exception as e:
|
||||
# This will throw an exception if there is already a "/builtin" folder present
|
||||
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
|
||||
|
||||
from mpos import apps
|
||||
|
||||
apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
|
||||
mpos.apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
|
||||
|
||||
try:
|
||||
import mpos.wifi
|
||||
import mpos.apps
|
||||
_thread.stack_size(mpos.apps.good_stack_size())
|
||||
_thread.start_new_thread(mpos.wifi.WifiService.auto_connect, ())
|
||||
except Exception as e:
|
||||
print(f"Couldn't start mpos.wifi.WifiService.auto_connect thread because: {e}")
|
||||
|
||||
apps.restart_launcher()
|
||||
mpos.apps.restart_launcher()
|
||||
|
||||
# If we got this far without crashing, then no need to rollback the update:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user