Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit eea5848

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

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy