kopia lustrzana https://github.com/micropython/micropython
esp32/modules: On initial setup mount internal flash at root.
Like it's done on normal boot up. Fixes issue #5004.pull/4994/merge
rodzic
64abc1f47a
commit
baeebc557c
|
@ -29,8 +29,7 @@ def setup():
|
|||
print("Performing initial setup")
|
||||
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)
|
||||
|
|
Ładowanie…
Reference in New Issue