From d29ca28288581ca788e468528ea1680b99eb49e5 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Mon, 22 Aug 2016 16:10:34 +0200 Subject: 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. --- extmod/fsusermount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extmod/fsusermount.c') diff --git a/extmod/fsusermount.c b/extmod/fsusermount.c index 9ddc98f3d..cbc1e3622 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; -- cgit v1.2.3