diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-27 15:16:08 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 17:21:45 +1100 |
commit | f9ecd484bbd698c0f85a3f40f391afeb01940052 (patch) | |
tree | ac85821061f3889e3aa65684c9a2d2fb927aa32f /esp8266/modules | |
parent | f1e04148a195619d142523152e952af6eaf5cd1c (diff) | |
download | micropython-f9ecd484bbd698c0f85a3f40f391afeb01940052.tar.gz micropython-f9ecd484bbd698c0f85a3f40f391afeb01940052.zip |
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".
Diffstat (limited to 'esp8266/modules')
-rw-r--r-- | esp8266/modules/_boot.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/esp8266/modules/_boot.py b/esp8266/modules/_boot.py index c200b3d3f9..954a9ee284 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() |