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.
Fork of USBDevice by
Revision 5:d27e4c226965, committed 2012-10-14
- Comitter:
- samux
- Date:
- Sun Oct 14 15:08:52 2012 +0000
- Parent:
- 4:eaa07ce86d49
- Child:
- 6:d0945750af57
- Commit message:
- USBMSD: fixed uninitialized variable (stage, csw, cbw) -> fixed dynamic init
Changed in this revision
| USBMSD/USBMSD.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBMSD/USBMSD.cpp Sun Oct 14 13:39:27 2012 +0000
+++ b/USBMSD/USBMSD.cpp Sun Oct 14 15:08:52 2012 +0000
@@ -64,6 +64,9 @@
USBMSD::USBMSD(uint16_t vendor_id, uint16_t product_id, uint16_t product_release): USBDevice(vendor_id, product_id, product_release) {
+ stage = READ_CBW;
+ memset((void *)&cbw, 0, sizeof(CBW));
+ memset((void *)&csw, 0, sizeof(CSW));
}
