Skip to content
Snippets Groups Projects
Commit baeebc55 authored by Damien George's avatar Damien George
Browse files

esp32/modules: On initial setup mount internal flash at root.

Like it's done on normal boot up.  Fixes issue #5004.
parent 64abc1f4
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,7 @@ def setup(): ...@@ -29,8 +29,7 @@ def setup():
print("Performing initial setup") print("Performing initial setup")
uos.VfsFat.mkfs(bdev) uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev) vfs = uos.VfsFat(bdev)
uos.mount(vfs, '/flash') uos.mount(vfs, '/')
uos.chdir('/flash')
with open("boot.py", "w") as f: with open("boot.py", "w") as f:
f.write("""\ f.write("""\
# This file is executed on every boot (including wake-boot from deepsleep) # This file is executed on every boot (including wake-boot from deepsleep)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment