From baeebc557c3132fa17f3c902e260d5049f7c7957 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 15 Aug 2019 22:03:09 +1000 Subject: [PATCH] esp32/modules: On initial setup mount internal flash at root. Like it's done on normal boot up. Fixes issue #5004. --- ports/esp32/modules/inisetup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/esp32/modules/inisetup.py b/ports/esp32/modules/inisetup.py index 0e9c72fe86..00d9a4eab8 100644 --- a/ports/esp32/modules/inisetup.py +++ b/ports/esp32/modules/inisetup.py @@ -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)