aboutsummaryrefslogtreecommitdiff
path: root/stmhal/usbd_msc_storage.c
diff options
context:
space:
mode:
authorDave Hylands2014-04-16 10:01:17 -0700
committerDave Hylands2014-04-16 10:01:17 -0700
commite553ff2f7518ea00a2fb528a20bf783da0901525 (patch)
treecb9d7f90c1adf38f76b3dfc255b67a234b1c1bec /stmhal/usbd_msc_storage.c
parentf6be480bda92486c3185ceaf8f25f461dfb2aa72 (diff)
Fix to allow usbd_msc_storage.c to compile when MICROPY_HW_HAS_SDCARD isn't defined.
Diffstat (limited to 'stmhal/usbd_msc_storage.c')
-rw-r--r--stmhal/usbd_msc_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/usbd_msc_storage.c b/stmhal/usbd_msc_storage.c
index 0225a2a23..2c0b29c1d 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