Skip to content

Commit

Permalink
cc3200: Fix 'MP_QSTR_sd' undeclared error when building for the LAUNC…
Browse files Browse the repository at this point in the history
…HXL.
  • Loading branch information
Daniel Campora committed Jun 2, 2015
1 parent 32ce72c commit 2ffb6e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cc3200/mods/moduos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2ffb6e1

Please sign in to comment.