1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17245 from Ollrogge/pr/usbus/fix_usb_hid

usbus/hid: fix ep_out readyness
This commit is contained in:
Dylan Laduranty 2021-11-20 11:24:25 +01:00 committed by GitHub
commit 69dc79efe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,10 @@ static void _init(usbus_t *usbus, usbus_handler_t *handler)
usbus_enable_endpoint(hid->ep_out);
usbus_add_interface(usbus, &hid->iface);
/* Wait for data from HOST */
usbdev_ep_xmit(hid->ep_out->ep, hid->out_buf,
CONFIG_USBUS_HID_INTERRUPT_EP_SIZE);
}
static void _event_handler(usbus_t *usbus, usbus_handler_t *handler,