diff options
| author | hathach <[email protected]> | 2018-07-25 00:16:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-25 00:16:09 +0700 |
| commit | 71934228d2902079da0c0dc65d97cc78f1b1eaab (patch) | |
| tree | c580b64fe37dc70798a303dc20f915a3471604f4 /src/device/usbd.c | |
| parent | 67e52af936fe85c11300355293b34b5523439d55 (diff) | |
tested boot mouse working
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 2b294cd3e..bd169bb6f 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -353,8 +353,6 @@ static tusb_error_t proc_control_request_st(uint8_t rhport, tusb_control_request error = TUSB_ERROR_NONE;
//------------- Standard Request e.g in enumeration -------------//
- /* Microsoft Windows will awkwardly get HID Report Descriptor with
- * Recipient = Device instead of Interface */
if( TUSB_REQ_RCPT_DEVICE == p_request->bmRequestType_bit.recipient &&
TUSB_REQ_TYPE_STANDARD == p_request->bmRequestType_bit.type )
{
@@ -398,7 +396,7 @@ static tusb_error_t proc_control_request_st(uint8_t rhport, tusb_control_request }
//------------- Class/Interface Specific Request -------------//
- else if ( TUSB_REQ_RCPT_INTERFACE == p_request->bmRequestType_bit.recipient)
+ else if ( TUSB_REQ_RCPT_INTERFACE == p_request->bmRequestType_bit.recipient )
{
if (_usbd_dev.itf2drv[ u16_low_u8(p_request->wIndex) ] < USBD_CLASS_DRIVER_COUNT)
{
|
