Merge pull request #44 from SteveAmor/patch-1

Add restart_to_default() to Mass Storage App
andrejusk/bday
Marek Ventur 2018-09-01 13:27:53 +01:00 committed by GitHub
commit 700ac49199
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()