Skip to content
Commit 88231b55 authored by Marek Pieta's avatar Marek Pieta Committed by Henrik Brix Andersen
Browse files

usb: device_next: usbd_hid: Fix size in HID report get



Since UDC buffers are allocated with `UDC_BUF_GRANULARITY` granularity,
the `net_buf_tailroom` may no longer be equal to the HID report size.
Use `setup->wLength` instead to ensure that proper HID report size is
passed to the application's callback.

Signed-off-by: default avatarMarek Pieta <Marek.Pieta@nordicsemi.no>
parent 06d0c583
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment