1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Fix BSoD for Windows (louismdavis)

http://arduino.cc/forum/index.php/topic,129869.0.html
This commit is contained in:
Cristian Maglie 2012-11-19 23:44:06 +01:00
parent 65f00a69c7
commit 70351fc341

View File

@ -385,7 +385,7 @@ static bool USBD_SendDescriptor(Setup& setup)
if (USB_DEVICE_DESCRIPTOR_TYPE == t)
{
TRACE_CORE(puts("=> USBD_SendDescriptor : USB_DEVICE_DESCRIPTOR_TYPE\r\n");)
if (setup.wLength >= 8)
if (setup.wLength == 8)
{
_cdcComposite = 1;
}