summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/_boot.py
blob: 81eb20dd631ef13ae776657205797934b7e2fb26 (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
    inisetup.setup()

gc.collect()