Skip to content
Snippets Groups Projects
Verified Commit 5acdebb6 authored by dos's avatar dos
Browse files

py,st3m: Don't try to yeet local changed in the simulator

It's not implemented there.
parent 7ac1ea0e
No related branches found
No related tags found
No related merge requests found
Pipeline #9360 failed
...@@ -22,6 +22,7 @@ from st3m.about import About ...@@ -22,6 +22,7 @@ from st3m.about import About
from st3m import settings_menu as settings, logging, processors, wifi from st3m import settings_menu as settings, logging, processors, wifi
from st3m.ui import led_patterns from st3m.ui import led_patterns
import st3m.wifi import st3m.wifi
import st3m.utils
import captouch, audio, leds, gc, sys_buttons, sys_display, sys_mode, media, bl00mbox import captouch, audio, leds, gc, sys_buttons, sys_display, sys_mode, media, bl00mbox
import os import os
...@@ -182,6 +183,9 @@ def run_app(klass, bundle_path=None): ...@@ -182,6 +183,9 @@ def run_app(klass, bundle_path=None):
def _yeet_local_changes() -> None: def _yeet_local_changes() -> None:
if st3m.utils.is_simulator():
# not implemented in simulator
return
os.remove("/flash/sys/.sys-installed") os.remove("/flash/sys/.sys-installed")
machine.reset() machine.reset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment