USBMSD SD card Hello World for Mbed platforms

Dependencies:   mbed USBMSD_SD USBDevice

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Sun Dec 11 18:06:03 2011 +0000
Parent:
20:50bf1cd2e2fe
Child:
22:1e79532affdd
Commit message:
warning: return address of a local variable -> doesn\'t work very well :)

Changed in this revision

USBDevice/USBMSD/USBMSD.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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) {