summaryrefslogtreecommitdiff
path: root/esp8266/modules/_boot.py
diff options
context:
space:
mode:
authorGirts Folkmanis <girtsf@users.noreply.github.com>2017-07-22 15:54:50 -0700
committerScott Shawcroft <scott@tannewt.org>2017-07-22 21:18:37 -0400
commitaf1ede930ba643d68850c541ef4075d5f7fd4f02 (patch)
tree410078a49352fd9a096cc71e21bfea2a69336d77 /esp8266/modules/_boot.py
parentbd4a9755300287de8cf66f917d8f9dd2b59109f2 (diff)
esp8266: fix "uos" includes
Fix couple places in startup scripts that still had "import uos". This would cause an exception when _boot.py was executed during startup.
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()