Skip to content

Commit 18d23b3

Browse files
committed
esp32/modules/inisetup.py: Mount filesystem at /flash like ESP8266
1 parent e8a724c commit 18d23b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

esp32/modules/inisetup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def setup():
2828
check_bootsec()
2929
print("Performing initial setup")
3030
uos.VfsFat.mkfs(bdev)
31-
vfs = uos.VfsFat(bdev, "")
32-
with open("/boot.py", "w") as f:
31+
vfs = uos.VfsFat(bdev)
32+
uos.mount(vfs, '/flash')
33+
uos.chdir('/flash')
34+
with open("boot.py", "w") as f:
3335
f.write("""\
3436
# This file is executed on every boot (including wake-boot from deepsleep)
3537
""")

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