diff options
author | mux <freelancer.c@gmail.com> | 2014-01-29 15:07:04 +0200 |
---|---|---|
committer | mux <freelancer.c@gmail.com> | 2014-01-29 15:07:04 +0200 |
commit | bfb01e9da620d974e3e38bf7ea2aa22d9c527d9d (patch) | |
tree | ac62a146b2257d398791ef5df35231187b93f044 | |
parent | 8592d85b365a588a6ee18684e5d481b9e9df0866 (diff) | |
download | micropython-bfb01e9da620d974e3e38bf7ea2aa22d9c527d9d.tar.gz micropython-bfb01e9da620d974e3e38bf7ea2aa22d9c527d9d.zip |
Fix unused function warning in main
* Add SD card test to fix warning
-rw-r--r-- | stm/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stm/main.c b/stm/main.c index 25dceddc2f..9f2b6d564a 100644 --- a/stm/main.c +++ b/stm/main.c @@ -206,12 +206,14 @@ static mp_obj_t pyb_info(void) { return mp_const_none; } +#if MICROPY_HW_HAS_SDCARD // SD card test static mp_obj_t pyb_sd_test(void) { extern void sdio_init(void); sdio_init(); return mp_const_none; } +#endif static void SYSCLKConfig_STOP(void) { /* After wake-up from STOP reconfigure the system clock */ |