diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2016-08-22 16:10:34 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-08-26 12:45:21 +1000 |
commit | d29ca28288581ca788e468528ea1680b99eb49e5 (patch) | |
tree | 36fa74e4f03df4be98b7578be4ff0686aee28395 /extmod/fsusermount.c | |
parent | b0e2106fb89d108bd0249c85707b800d23d0273f (diff) | |
download | micropython-d29ca28288581ca788e468528ea1680b99eb49e5.tar.gz micropython-d29ca28288581ca788e468528ea1680b99eb49e5.zip |
esp8266/modous: Add os.umount method to unmount a filesystem.
This is an object-oriented approach, where uos is only a proxy for the
methods on the vfs object. Some internals had to be exposed (the STATIC
keyword removed) for this to work.
Fixes #2338.
Diffstat (limited to 'extmod/fsusermount.c')
-rw-r--r-- | extmod/fsusermount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/fsusermount.c b/extmod/fsusermount.c index 9ddc98f3dd..cbc1e36220 100644 --- a/extmod/fsusermount.c +++ b/extmod/fsusermount.c @@ -162,7 +162,7 @@ STATIC mp_obj_t fatfs_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t *k } MP_DEFINE_CONST_FUN_OBJ_KW(fsuser_mount_obj, 2, fatfs_mount); -STATIC mp_obj_t fatfs_umount(mp_obj_t bdev_or_path_in) { +mp_obj_t fatfs_umount(mp_obj_t bdev_or_path_in) { size_t i = 0; if (MP_OBJ_IS_STR(bdev_or_path_in)) { mp_uint_t mnt_len; |