circuitpython/esp8266/modules/_boot.py
Girts Folkmanis af1ede930b 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.
2017-07-22 21:18:37 -04:00

15 lines
261 B
Python

import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
from flashbdev import bdev
import storage
try:
if bdev:
vfs = storage.VfsFat(bdev)
storage.mount(vfs, '/')
except OSError:
import inisetup
inisetup.setup()
gc.collect()