micropython/ports/esp8266/modules/_boot.py
Jim Mussared 5fd042e7d1 all: Replace all uses of umodule in Python code.
Applies to drivers/examples/extmod/port-modules/tools.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-06-08 17:54:24 +10:00

16 lines
223 B
Python

import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
import os
from flashbdev import bdev
if bdev:
try:
os.mount(bdev, "/")
except:
import inisetup
inisetup.setup()
gc.collect()