summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/main.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-10 16:53:28 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-10 16:59:19 +0300
commitc734de490a03927dfb244224aec90d333606a3ef (patch)
treee909217b0cf80ea86f02207b9b64111154ec9d20 /esp8266/main.c
parent358e5d8bada558e7197f59221989ff6357a915e4 (diff)
downloadmicropython-c734de490a03927dfb244224aec90d333606a3ef.tar.gz
micropython-c734de490a03927dfb244224aec90d333606a3ef.zip
esp8266/main: mp_builtin_open(): Implement, using vfs_proxy_call().
Diffstat (limited to 'esp8266/main.c')
-rw-r--r--esp8266/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/esp8266/main.c b/esp8266/main.c
index bbd0b4dfd8..08085299ba 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -123,8 +123,14 @@ mp_import_stat_t mp_import_stat(const char *path) {
#endif
}
+mp_obj_t vfs_proxy_call(qstr method_name, mp_uint_t n_args, const mp_obj_t *args);
mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
+ #if MICROPY_VFS_FAT
+ // TODO: Handle kwargs!
+ return vfs_proxy_call(MP_QSTR_open, n_args, args);
+ #else
return mp_const_none;
+ #endif
}
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);