diff options
Diffstat (limited to 'boot.py')
-rw-r--r-- | boot.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |