Add restart_to_default() to Mass Storage App

andrejusk/bday
Steveis 2018-09-01 12:48:08 +01:00 committed by GitHub
parent 6202754906
commit 5fe53df593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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()