Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
2ffb6e1b
Commit
2ffb6e1b
authored
Jun 02, 2015
by
Daniel Campora
Browse files
cc3200: Fix 'MP_QSTR_sd' undeclared error when building for the LAUNCHXL.
parent
32ce72cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/mods/moduos.c
View file @
2ffb6e1b
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment