Skip to content

Commit e62235f

Browse files
committed
esp8266: Change default settings to mount flash at root dir.
1 parent 1b3e372 commit e62235f

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

esp8266/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ STATIC void mp_reset(void) {
5050
mp_init();
5151
mp_obj_list_init(mp_sys_path, 0);
5252
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
53-
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_flash_slash_lib));
54-
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_flash));
53+
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
54+
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
5555
mp_obj_list_init(mp_sys_argv, 0);
5656
MP_STATE_PORT(term_obj) = MP_OBJ_NULL;
5757
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;

esp8266/modules/_boot.py

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

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

esp8266/qstrdefsport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
// qstrs specific to this port, only needed if they aren't auto-generated
2828

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

0 commit comments

Comments
 (0)