diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-06-02 12:58:37 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-06-02 13:11:01 +0200 |
| commit | 2ffb6e1b157b856178426c1d040a9181174c5976 (patch) | |
| tree | c396bd0fb4b478b27d0e0981793773934b6a738e | |
| parent | 32ce72cb9e0a5ebb68ddf056c4eadce5a9117e6e (diff) | |
cc3200: Fix 'MP_QSTR_sd' undeclared error when building for the LAUNCHXL.
| -rw-r--r-- | cc3200/mods/moduos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc3200/mods/moduos.c b/cc3200/mods/moduos.c index b8e78d0b3..71f68c445 100644 --- a/cc3200/mods/moduos.c +++ b/cc3200/mods/moduos.c @@ -150,9 +150,11 @@ STATIC mp_obj_t os_listdir(mp_uint_t n_args, const mp_obj_t *args) { if (path[0] == '/' && path[1] == '\0') { mp_obj_t dir_list = mp_obj_new_list(0, NULL); mp_obj_list_append(dir_list, MP_OBJ_NEW_QSTR(MP_QSTR_flash)); +#if MICROPY_HW_HAS_SDCARD if (sd_in_root()) { mp_obj_list_append(dir_list, MP_OBJ_NEW_QSTR(MP_QSTR_sd)); } +#endif return dir_list; } |
