Add MS OS Compatibility descriptors to RNDIS demos for driverless install on Windows.
[pub/USBasp.git] / Demos / Device / ClassDriver / RNDISEthernet / RNDISEthernet.c
index f963d48..cfe90cc 100644 (file)
@@ -174,6 +174,9 @@ void EVENT_USB_Device_ConfigurationChanged(void)
 /** Event handler for the library USB Control Request reception event. */
 void EVENT_USB_Device_ControlRequest(void)
 {
+       /* Send MS OS Compatibility descriptor if requested by the host. */
+       CheckIfMSCompatibilityDescriptorRequest();
+
        RNDIS_Device_ProcessControlRequest(&Ethernet_RNDIS_Interface);
 }