summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/modules/_boot.py2
-rw-r--r--esp8266/modules/inisetup.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py
index 52683693d4..81eb20dd63 100644
--- a/esp8266/modules/_boot.py
+++ b/esp8266/modules/_boot.py
@@ -8,6 +8,6 @@ try:
uos.mount(bdev, '/')
except OSError:
import inisetup
- vfs = inisetup.setup()
+ inisetup.setup()
gc.collect()
diff --git a/esp8266/modules/inisetup.py b/esp8266/modules/inisetup.py
index 29421e7923..af78dfad51 100644
--- a/esp8266/modules/inisetup.py
+++ b/esp8266/modules/inisetup.py
@@ -38,8 +38,7 @@ def setup():
wifi()
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)