Skip to content

Commit f6b5caf

Browse files
committed
esp32: Mount filesystem at the root of the VFS, following esp8266.
1 parent 21ea2e9 commit f6b5caf

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

esp32/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void mp_task(void *pvParameter) {
7474
mp_init();
7575
mp_obj_list_init(mp_sys_path, 0);
7676
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_));
77-
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_flash_slash_lib));
77+
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
7878
mp_obj_list_init(mp_sys_argv, 0);
7979
readline_init0();
8080

esp32/modules/_boot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
try:
66
if bdev:
7-
vfs = uos.VfsFat(bdev)
8-
uos.mount(vfs, '/flash')
9-
uos.chdir('/flash')
7+
uos.mount(bdev, '/')
108
except OSError:
119
import inisetup
1210
vfs = inisetup.setup()

esp32/qstrdefsport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
// qstrs specific to this port, only needed if they aren't auto-generated
2828

2929
// Entries for sys.path
30-
Q(/flash/lib)
30+
Q(/lib)

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