From 9f39749f0f6303395871cebff38ff1796029ec4f Mon Sep 17 00:00:00 2001 From: Kimball Johnson Date: Sat, 1 Sep 2018 16:45:43 +0100 Subject: [PATCH] Update Mass Storage App Wait for one second before calling disable command --- 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 9cdae55..aa88772 100644 --- a/mass_storage/main.py +++ b/mass_storage/main.py @@ -6,13 +6,14 @@ ___dependencies___ = ["dialogs", "ugfx_helper"] ___categories___ = ["EMF"] ___bootstrapped___ = True -import ugfx, tilda, ugfx_helper, dialogs, app +import ugfx, tilda, ugfx_helper, dialogs, app, time ugfx_helper.init() ugfx.clear() print("enabling USB storage...") tilda.storage_enable_usb() +time.sleep(1) print("DONE") with dialogs.WaitingMessage(title="Mass Storage Enabled", text="You can now use the badge like a USB key.\nPlease safely eject afterwards. This app will close automatically."): print("Waiting for USB mass storage to be unmounted...")