diff options
| author | Dave Hylands | 2014-04-16 10:01:17 -0700 |
|---|---|---|
| committer | Dave Hylands | 2014-04-16 10:01:17 -0700 |
| commit | e553ff2f7518ea00a2fb528a20bf783da0901525 (patch) | |
| tree | cb9d7f90c1adf38f76b3dfc255b67a234b1c1bec /stmhal/usbd_msc_storage.c | |
| parent | f6be480bda92486c3185ceaf8f25f461dfb2aa72 (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.c | 3 |
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 |
