summaryrefslogtreecommitdiff
path: root/esp8266/modules/_boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/modules/_boot.py')
-rw-r--r--esp8266/modules/_boot.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py
index 81eb20dd6..cbaf2aba6 100644
--- a/esp8266/modules/_boot.py
+++ b/esp8266/modules/_boot.py
@@ -1,11 +1,12 @@
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
-import uos
from flashbdev import bdev
+import storage
try:
if bdev:
- uos.mount(bdev, '/')
+ vfs = storage.VfsFat(bdev)
+ storage.mount(vfs, '/')
except OSError:
import inisetup
inisetup.setup()