Flush HID endpoint on init.

Fixes delayed HID events after failed wakeup attempt.
USG_1.0
Robert Fisk 8 years ago
parent 747681769b
commit 2843654ff7

@ -334,6 +334,7 @@ static uint8_t USBD_HID_Init (USBD_HandleTypeDef *pdev,
HID_EPIN_ADDR, HID_EPIN_ADDR,
USBD_EP_TYPE_INTR, USBD_EP_TYPE_INTR,
InReportSize); InReportSize);
USBD_LL_FlushEP(pdev, HID_EPIN_ADDR);
pdev->pClassData = USBD_malloc(sizeof (USBD_HID_HandleTypeDef)); pdev->pClassData = USBD_malloc(sizeof (USBD_HID_HandleTypeDef));

Loading…
Cancel
Save