Re-added Set Control Line State request handling to the CDC class bootloader.
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 27 Jun 2013 18:03:33 +0000 (20:03 +0200)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 27 Jun 2013 18:03:51 +0000 (20:03 +0200)
Bootloaders/CDC/BootloaderCDC.c
Bootloaders/CDC/Descriptors.c
LUFA/DoxygenPages/ChangeLog.txt

index acdcde3..74e4066 100644 (file)
@@ -223,6 +223,14 @@ void EVENT_USB_Device_ControlRequest(void)
                        }
 
                        break;
                        }
 
                        break;
+        case CDC_REQ_SetControlLineState:
+               if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
+               {
+                   Endpoint_ClearSETUP();
+                   Endpoint_ClearStatusStage();
+               }
+
+               break;
        }
 }
 
        }
 }
 
index 03a4a5d..bbf4e76 100644 (file)
@@ -115,7 +115,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .Header                 = {.Size = sizeof(USB_CDC_Descriptor_FunctionalACM_t), .Type = DTYPE_CSInterface},
                        .Subtype                = 0x02,
 
                        .Header                 = {.Size = sizeof(USB_CDC_Descriptor_FunctionalACM_t), .Type = DTYPE_CSInterface},
                        .Subtype                = 0x02,
 
-                       .Capabilities           = 0x00,
+                       .Capabilities           = 0x02,
                },
 
        .CDC_Functional_Union =
                },
 
        .CDC_Functional_Union =
index 60dd453..9111644 100644 (file)
@@ -26,6 +26,9 @@
   *   - All board drivers now implement dummy functions and constants when BOARD is set to NONE
   *   - Added missing LEDs to the XMEGA A3BU Xplained board LED driver (thanks to Michael Janssen)
   *   - Changed board Dataflash drivers to automatically configure the appropriate SPI interface for the selected board
   *   - All board drivers now implement dummy functions and constants when BOARD is set to NONE
   *   - Added missing LEDs to the XMEGA A3BU Xplained board LED driver (thanks to Michael Janssen)
   *   - Changed board Dataflash drivers to automatically configure the appropriate SPI interface for the selected board
+  *  - Library Applications:
+  *   - Re-added Set Control Line State request handling to the CDC class bootloader to prevent issues with the .NET serial
+  *     class (thanks to Erik Lins)
   *
   *  <b>Fixed:</b>
   *  - Core:
   *
   *  <b>Fixed:</b>
   *  - Core: