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_11U24_CapacitorDose_V001
Diff: USBSerial/USBCDC.cpp
- Revision:
- 11:eeb3cbbaa996
- Parent:
- 8:335f2506f422
- Child:
- 15:849c0c0f2769
diff -r 1e3d126a322b -r eeb3cbbaa996 USBSerial/USBCDC.cpp
--- a/USBSerial/USBCDC.cpp Thu May 30 17:16:57 2013 +0100
+++ b/USBSerial/USBCDC.cpp Mon Aug 05 14:13:36 2013 +0300
@@ -116,8 +116,8 @@
0, // bDeviceSubClass
0, // bDeviceProtocol
MAX_PACKET_SIZE_EP0, // bMaxPacketSize0
- LSB(VENDOR_ID), MSB(VENDOR_ID), // idVendor
- LSB(PRODUCT_ID), MSB(PRODUCT_ID),// idProduct
+ (uint8_t)(LSB(VENDOR_ID)), (uint8_t)(MSB(VENDOR_ID)), // idVendor
+ (uint8_t)(LSB(PRODUCT_ID)), (uint8_t)(MSB(PRODUCT_ID)),// idProduct
0x00, 0x01, // bcdDevice
1, // iManufacturer
2, // iProduct