From f9ecd484bbd698c0f85a3f40f391afeb01940052 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 27 Jan 2017 15:16:08 +1100 Subject: esp8266: Change to use new generic VFS sub-system. The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash". --- esp8266/modules/_boot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'esp8266/modules') diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py index c200b3d3f..954a9ee28 100644 --- a/esp8266/modules/_boot.py +++ b/esp8266/modules/_boot.py @@ -5,7 +5,9 @@ from flashbdev import bdev try: if bdev: - vfs = uos.VfsFat(bdev, "") + vfs = uos.VfsFat(bdev) + uos.mount(vfs, '/flash') + uos.chdir('/flash') except OSError: import inisetup vfs = inisetup.setup() -- cgit v1.2.3