diff options
| author | Damien George | 2014-04-17 00:23:43 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-17 00:23:43 +0100 |
| commit | b08f9212e2a2e2742963eeac2e5d742696a2825a (patch) | |
| tree | b8006a59486090f7d3db35a01c685e8b12571a5a /stmhal/usbd_msc_storage.c | |
| parent | 7447e80f3d2c05068813f868301255b252cce50e (diff) | |
| parent | e553ff2f7518ea00a2fb528a20bf783da0901525 (diff) | |
Merge pull request #500 from dhylands/fix-sdcard-removed
Fix to allow usbd_msc_storage.c to compile when MICROPY_HW_HAS_SDCARD is...
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 3599e289d..6ec9abc3d 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 |
