diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-31 13:04:32 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-31 13:04:32 +1100 |
commit | 7d8c79ab6d6b714f60ad07189f29e526cc0aee9a (patch) | |
tree | 94fdfd6ea692cc172744b852a7dd0fbf85d9e5ff /stmhal | |
parent | e0381424ccfb445c72cebd24acd1c4a22974a3e8 (diff) | |
download | micropython-7d8c79ab6d6b714f60ad07189f29e526cc0aee9a.tar.gz micropython-7d8c79ab6d6b714f60ad07189f29e526cc0aee9a.zip |
stmhal/main: Guard init_sdcard_fs with MICROPY_HW_HAS_SDCARD.
Diffstat (limited to 'stmhal')
-rw-r--r-- | stmhal/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 989e7da767..722ca41b42 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -263,6 +263,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) { return true; } +#if MICROPY_HW_HAS_SDCARD STATIC bool init_sdcard_fs(bool first_soft_reset) { bool first_part = true; for (int part_num = 1; part_num <= 4; ++part_num) { @@ -338,6 +339,7 @@ STATIC bool init_sdcard_fs(bool first_soft_reset) { return true; } } +#endif STATIC uint update_reset_mode(uint reset_mode) { #if MICROPY_HW_HAS_SWITCH |