aboutsummaryrefslogtreecommitdiff
path: root/boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'boot.py')
-rw-r--r--boot.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/boot.py b/boot.py
index e1c58e0..3f2dfb2 100644
--- a/boot.py
+++ b/boot.py
@@ -2,9 +2,12 @@ import usb_cdc
usb_cdc.enable(data=True)
import layout
+import storage
if layout.check_key():
print("Key pressed")
+ storage.remount("/", readonly=False)
+ storage.enable_usb_drive()
else:
- import storage
+ # Remount in read only
+ storage.remount("/", readonly=True)
storage.disable_usb_drive()
- storage.remount("/", False)