@ -8,6 +8,6 @@ try:
uos.mount(bdev, '/')
except OSError:
import inisetup
vfs = inisetup.setup()
inisetup.setup()
gc.collect()
@ -38,8 +38,7 @@ def setup():
wifi()
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev)
uos.mount(vfs, '/flash')
uos.chdir('/flash')
uos.mount(vfs, '/')
with open("boot.py", "w") as f:
f.write("""\
# This file is executed on every boot (including wake-boot from deepsleep)