From 70351fc34150b1288079996839082e751b176821 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 19 Nov 2012 23:44:06 +0100 Subject: [PATCH] Fix BSoD for Windows (louismdavis) http://arduino.cc/forum/index.php/topic,129869.0.html --- hardware/arduino/sam/cores/arduino/USB/USBCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp b/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp index f4607d2f0..e831f417a 100644 --- a/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp +++ b/hardware/arduino/sam/cores/arduino/USB/USBCore.cpp @@ -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; }