summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/_boot.py
blob: c200b3d3f9022ba4c08095f602ec5e4c97cee935 (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:
        vfs = uos.VfsFat(bdev, "")
except OSError:
    import inisetup
    vfs = inisetup.setup()

gc.collect()