esp8266/modules: Mount filesystem at root when creating for first time.

crypto-aes
Damien George 6 years ago
parent e26fb3ad73
commit eea584860d

@ -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)

Loading…
Cancel
Save