From e553ff2f7518ea00a2fb528a20bf783da0901525 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 16 Apr 2014 10:01:17 -0700 Subject: [PATCH] Fix to allow usbd_msc_storage.c to compile when MICROPY_HW_HAS_SDCARD isn't defined. --- stmhal/usbd_msc_storage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stmhal/usbd_msc_storage.c b/stmhal/usbd_msc_storage.c index 0225a2a23c..2c0b29c1db 100644 --- a/stmhal/usbd_msc_storage.c +++ b/stmhal/usbd_msc_storage.c @@ -38,7 +38,10 @@ // These are needed to support removal of the medium, so that the USB drive // can be unmounted, and won't be remounted automatically. static uint8_t flash_removed = 0; + +#if MICROPY_HW_HAS_SDCARD static uint8_t sdcard_removed = 0; +#endif /******************************************************************************/ // Callback functions for when the internal flash is the mass storage device