diff options
author | Dean Camera <[email protected]> | 2010-08-22 02:45:20 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-08-22 02:45:20 +0000 |
commit | 1be3436e895c9937dcd4ebbec33ea199f3e26db2 (patch) | |
tree | 79dea3910fc817fa020c4f13f9f981d137005ee9 /LUFA/Drivers/USB/Class/Device/RNDIS.c | |
parent | 81998ce297fd9959f505e96a69337f3548db0d71 (diff) | |
download | qmk_firmware-1be3436e895c9937dcd4ebbec33ea199f3e26db2.tar.gz qmk_firmware-1be3436e895c9937dcd4ebbec33ea199f3e26db2.zip |
Moved calls to Device mode Class Driver events to after the request has been acknowledged, so that long event handlers do do skew the timing of the control requests.
Fixed USBtoSerial and Benito project SetLineEncoding calls failing if the USART is busy, due to the RX ISR delaying the control request handler.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/RNDIS.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/RNDIS.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/RNDIS.c b/LUFA/Drivers/USB/Class/Device/RNDIS.c index ff790b771f..da1e4507c2 100644 --- a/LUFA/Drivers/USB/Class/Device/RNDIS.c +++ b/LUFA/Drivers/USB/Class/Device/RNDIS.c @@ -83,8 +83,9 @@ void RNDIS_Device_ProcessControlRequest(USB_ClassInfo_RNDIS_Device_t* const RNDI Endpoint_ClearSETUP(); Endpoint_Read_Control_Stream_LE(RNDISInterfaceInfo->State.RNDISMessageBuffer, USB_ControlRequest.wLength); - RNDIS_Device_ProcessRNDISControlMessage(RNDISInterfaceInfo); Endpoint_ClearIN(); + + RNDIS_Device_ProcessRNDISControlMessage(RNDISInterfaceInfo); } break; |