Skip to content

Commit eea5848

Browse files
committed
esp8266/modules: Mount filesystem at root when creating for first time.
1 parent e26fb3a commit eea5848

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

esp8266/modules/_boot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
uos.mount(bdev, '/')
99
except OSError:
1010
import inisetup
11-
vfs = inisetup.setup()
11+
inisetup.setup()
1212

1313
gc.collect()

esp8266/modules/inisetup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def setup():
3838
wifi()
3939
uos.VfsFat.mkfs(bdev)
4040
vfs = uos.VfsFat(bdev)
41-
uos.mount(vfs, '/flash')
42-
uos.chdir('/flash')
41+
uos.mount(vfs, '/')
4342
with open("boot.py", "w") as f:
4443
f.write("""\
4544
# This file is executed on every boot (including wake-boot from deepsleep)

0 commit comments

Comments
 (0)