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

usbus/hid: fix ep_out readyness

This commit is contained in:
Ollrogge 2021-11-19 22:20:12 +01:00
parent 9e8d718a43
commit 6f9a21503b

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,