From 5fe53df5932fac4e529ee1234994b6b568e49b17 Mon Sep 17 00:00:00 2001 From: Steveis Date: Sat, 1 Sep 2018 12:48:08 +0100 Subject: [PATCH] Add restart_to_default() to Mass Storage App --- mass_storage/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mass_storage/main.py b/mass_storage/main.py index d4211a4..9cdae55 100644 --- a/mass_storage/main.py +++ b/mass_storage/main.py @@ -6,7 +6,7 @@ ___dependencies___ = ["dialogs", "ugfx_helper"] ___categories___ = ["EMF"] ___bootstrapped___ = True -import ugfx, tilda, ugfx_helper, dialogs +import ugfx, tilda, ugfx_helper, dialogs, app ugfx_helper.init() ugfx.clear() @@ -18,3 +18,4 @@ with dialogs.WaitingMessage(title="Mass Storage Enabled", text="You can now use print("Waiting for USB mass storage to be unmounted...") tilda.storage_disable_usb() print("DONE") + app.restart_to_default()