USB device stack

Dependents:   MATSU-bed_blinky MATSU-bed_detection

Fork of USBDevice by mbed official

Revision:
11:eeb3cbbaa996
Parent:
10:1e3d126a322b
Child:
21:ee9f2fa6bdbc
diff -r 1e3d126a322b -r eeb3cbbaa996 USBHID/USBHID.cpp
--- a/USBHID/USBHID.cpp	Thu May 30 17:16:57 2013 +0100
+++ b/USBHID/USBHID.cpp	Mon Aug 05 14:13:36 2013 +0300
@@ -250,8 +250,8 @@
         0x00,                           // bCountryCode
         0x01,                           // bNumDescriptors
         REPORT_DESCRIPTOR,              // bDescriptorType
-        LSB(this->reportDescLength()),  // wDescriptorLength (LSB)
-        MSB(this->reportDescLength()),  // wDescriptorLength (MSB)
+        (uint8_t)(LSB(this->reportDescLength())),  // wDescriptorLength (LSB)
+        (uint8_t)(MSB(this->reportDescLength())),  // wDescriptorLength (MSB)
 
         ENDPOINT_DESCRIPTOR_LENGTH,     // bLength
         ENDPOINT_DESCRIPTOR,            // bDescriptorType