circuitpython/ports/esp8266/modules/_boot.py
Scott Shawcroft 73c15dcf8b Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_merge
This is prep for merging in the NRF5 pull request.
2017-10-24 22:31:16 -07: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()