summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/_boot.py
blob: ed43c0b3df849503393ea61149be6e059773a612 (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()) // 2)
import uos
from flashbdev import bdev

try:
    if bdev:
        vfs = uos.VfsFat(bdev, "")
except OSError:
    import inisetup
    vfs = inisetup.setup()

gc.collect()