mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-02-04 06:12:55 +08:00
return WCID GUID only for gs_usb interface, not for the dfu one
This commit is contained in:
parent
bc4672a174
commit
edd477101c
@ -492,10 +492,13 @@ bool USBD_GS_CAN_CustomDeviceRequest(USBD_HandleTypeDef *pdev, USBD_SetupReqType
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 0x0005:
|
case 0x0005:
|
||||||
pbuf = USBD_MS_EXT_PROP_FEATURE_DESC;
|
if (req->wValue==0) { // only return our GUID for interface #0
|
||||||
len = sizeof(USBD_MS_EXT_PROP_FEATURE_DESC);
|
pbuf = USBD_MS_EXT_PROP_FEATURE_DESC;
|
||||||
USBD_CtlSendData(pdev, pbuf, MIN(len, req->wLength));
|
len = sizeof(USBD_MS_EXT_PROP_FEATURE_DESC);
|
||||||
return true;
|
USBD_CtlSendData(pdev, pbuf, MIN(len, req->wLength));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user