From af1ede930ba643d68850c541ef4075d5f7fd4f02 Mon Sep 17 00:00:00 2001 From: Girts Folkmanis Date: Sat, 22 Jul 2017 15:54:50 -0700 Subject: 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. --- esp8266/modules/_boot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'esp8266/modules/_boot.py') 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() -- cgit v1.2.3