Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8464be15
Commit
8464be15
authored
Aug 01, 2014
by
Damien George
Browse files
Merge pull request #781 from dhylands/fix-disc
Fix modos.c to compile for the STM32F4Discovery board
parents
65dd7bc1
f8f963a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/modos.c
View file @
8464be15
...
...
@@ -92,9 +92,11 @@ STATIC mp_obj_t os_listdir(uint 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
(
sdcard_is_present
())
{
// TODO this is not the correct logic to check for /sd
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
.
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