Commit eea58486 authored by Damien George's avatar Damien George

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

parent e26fb3ad
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment