Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_cdc_hid_composite
Fork of USBDevice by
Diff: USBMSD/USBMSD.cpp
- Revision:
- 51:deafa44182d9
- Parent:
- 47:a0cd9646ecd1
diff -r a3c50882f2c5 -r deafa44182d9 USBMSD/USBMSD.cpp
--- a/USBMSD/USBMSD.cpp	Mon Apr 20 10:45:54 2015 +0100
+++ b/USBMSD/USBMSD.cpp	Thu Apr 23 08:45:28 2015 +0100
@@ -135,10 +135,10 @@
 }
 
 void USBMSD::disconnect() {
+    USBDevice::disconnect();
     //De-allocate MSD page size:
     free(page);
     page = NULL;
-    USBDevice::disconnect();
 }
 
 void USBMSD::reset() {
    