Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Commits on Sep 25, 2024

  1. 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: Marek Pieta <[email protected]>
    MarekPieta committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fc7b40a View commit details
    Browse the repository at this point in the history