USBMSD SD card Hello World for Mbed platforms
Dependencies: mbed USBMSD_SD USBDevice
Diff: USBDevice/USBMSD/USBMSD.cpp
- Revision:
- 21:bbe291251dde
- Parent:
- 20:50bf1cd2e2fe
diff -r 50bf1cd2e2fe -r bbe291251dde USBDevice/USBMSD/USBMSD.cpp --- a/USBDevice/USBMSD/USBMSD.cpp Sun Dec 11 15:56:08 2011 +0000 +++ b/USBDevice/USBMSD/USBMSD.cpp Sun Dec 11 18:06:03 2011 +0000 @@ -73,7 +73,7 @@ bool success = false; CONTROL_TRANSFER * transfer = getTransferPtr(); - uint8_t maxLUN[1] = {0}; + static uint8_t maxLUN[1] = {0}; if (transfer->setup.bmRequestType.Type == CLASS_TYPE) { switch (transfer->setup.bRequest) {