stm32/usbdev: Be honest about data not being written to HID endpoint.
USB_HID.send() should now return 0 if it could not send the report to the host.
This commit is contained in:
parent
67e1a4f8be
commit
1f1623d3b7
@ -1161,9 +1161,10 @@ uint8_t USBD_HID_SendReport(usbd_cdc_msc_hid_state_t *usbd, uint8_t *report, uin
|
||||
if (usbd->HID_ClassData.state == HID_IDLE) {
|
||||
usbd->HID_ClassData.state = HID_BUSY;
|
||||
USBD_LL_Transmit(usbd->pdev, usbd->hid_in_ep, report, len);
|
||||
return USBD_OK;
|
||||
}
|
||||
}
|
||||
return USBD_OK;
|
||||
return USBD_FAIL;
|
||||
}
|
||||
|
||||
uint8_t USBD_HID_SetNAK(usbd_cdc_msc_hid_state_t *usbd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user