Linaro Git Browser
Code Review
Sign In
review.linaro.org
/
lite
/
micropython
/
1b3e3724188af762ccab80cafc959a0e766983bc
/
.
/
esp8266
/
modules
/
_boot.py
blob: 954a9ee284e04790073e10cd65ad48ab45b3dd57 [
file
] [
log
] [
blame
]
import
gc
gc
.
threshold
((
gc
.
mem_free
()
+
gc
.
mem_alloc
())
//
4
)
import
uos
from
flashbdev
import
bdev
try
:
if
bdev
:
vfs
=
uos
.
VfsFat
(
bdev
)
uos
.
mount
(
vfs
,
'/flash'
)
uos
.
chdir
(
'/flash'
)
except
OSError
:
import
inisetup
vfs
=
inisetup
.
setup
()
gc
.
collect
()