diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-08-01 16:25:59 +0100 | 
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-08-01 16:25:59 +0100 | 
| commit | 8464be15ed7001edad55f911177ca70f0175d4ca (patch) | |
| tree | 52e92aee6072c5041145658607936544e211401c | |
| parent | 65dd7bc13d2083a7db5a974bf6480b1652a35c82 (diff) | |
| parent | f8f963a14a130639d3ddcb3f05e53a59c87ffbca (diff) | |
Merge pull request #781 from dhylands/fix-disc
Fix modos.c to compile for the STM32F4Discovery board
| -rw-r--r-- | stmhal/modos.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/stmhal/modos.c b/stmhal/modos.c index 67daf9250..66e22bd28 100644 --- a/stmhal/modos.c +++ b/stmhal/modos.c @@ -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;      } | 
