diff options
| author | hathach <[email protected]> | 2020-04-16 11:13:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-16 11:13:54 +0700 |
| commit | 2eed58d0962849014ab3166d4a3f0d3677d32c01 (patch) | |
| tree | 11950a260c8bfc543f33cdaa592870afceb43473 /src/device | |
| parent | 86ff5651ad94b6134aca0805b48d255da4786eef (diff) | |
per review
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index cf16b28c8..29845ff36 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -575,8 +575,8 @@ static bool process_control_request(uint8_t rhport, tusb_control_request_t const // notable requests are: GET HID REPORT DESCRIPTOR, SET_INTERFACE, GET_INTERFACE if ( !invoke_class_control(rhport, drvid, p_request) ) { - // For STD GET_INTERFACE even if class driver doesn't support alternate setting - // It is still mandatory to response with value of zero + // For GET_INTERFACE, it is mandatory to respond even if the class + // driver doesn't use alternate settings. TU_VERIFY( TUSB_REQ_TYPE_STANDARD == p_request->bmRequestType_bit.type && TUSB_REQ_GET_INTERFACE == p_request->bRequest); |
