You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Move ResetIntoBootloader activity to Settings app
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import lvgl as lv
|
||||
|
||||
from .app.activity import Activity
|
||||
from mpos import Activity
|
||||
|
||||
class ResetIntoBootloader(Activity):
|
||||
|
||||
@@ -2,6 +2,7 @@ import lvgl as lv
|
||||
|
||||
from mpos import Intent, AppManager, SettingActivity, SettingsActivity, TimeZone
|
||||
|
||||
from bootloader import ResetIntoBootloader
|
||||
from calibrate_imu import CalibrateIMUActivity
|
||||
from check_imu_calibration import CheckIMUCalibrationActivity
|
||||
|
||||
@@ -59,7 +60,6 @@ class Settings(SettingsActivity):
|
||||
def reset_into_bootloader(self, new_value):
|
||||
if new_value is not "bootloader":
|
||||
return
|
||||
from mpos.bootloader import ResetIntoBootloader
|
||||
intent = Intent(activity_class=ResetIntoBootloader)
|
||||
self.startActivity(intent)
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ from .ui.widget_animator import WidgetAnimator
|
||||
from .ui import focus_direction
|
||||
|
||||
# Utility modules
|
||||
from . import bootloader
|
||||
from . import ui
|
||||
from . import config
|
||||
from . import net
|
||||
@@ -95,7 +94,7 @@ __all__ = [
|
||||
"get_all_widgets_with_text",
|
||||
# Submodules
|
||||
"ui", "config", "net", "content", "time", "sensor_manager",
|
||||
"camera_manager", "sdcard", "audio", "hardware", "bootloader",
|
||||
"camera_manager", "sdcard", "audio", "hardware",
|
||||
# Timezone utilities
|
||||
"TimeZone"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user