summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/_boot.py
blob: 52683693d42b60206e8c939f641d70425334b190 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
import uos
from flashbdev import bdev

try:
    if bdev:
        uos.mount(bdev, '/')
except OSError:
    import inisetup
    vfs = inisetup.setup()

gc.collect()