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

tud_hid_set_report_cb is not called when byte count equals CFG_TUD_HID_EP_BUFSIZE #2986

Closed
1 task done
mitchellcairns opened this issue Feb 10, 2025 · 1 comment
Closed
1 task done
Labels

Comments

@mitchellcairns
Copy link

Operating System

Windows 11

Board

RP2040 (Any Board)

Firmware

N/A

What happened ?

When CFG_TUD_HID_EP_BUFSIZE is set to 64, and a host (Such as Windows) sends a 64 byte packet as an OUTPUT report to the HID endpoint, the data is never received.

How to reproduce ?

As described

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

N/A

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
@mitchellcairns
Copy link
Author

So it turns out that now when doing an HID report that includes the report ID, the report size must be exclusive from the report ID. With previous versions, even when I included report ID (and sending a 64 byte packet), I'd have to say 64 bytes and not 63.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant