Skip to content

Add expected_response_size to GetReport command#888

Open
daniellehadar wants to merge 2 commits into
OpenDevicePartnership:mainfrom
razbhe10:personal/dhadar/use_buffer_size_get_report
Open

Add expected_response_size to GetReport command#888
daniellehadar wants to merge 2 commits into
OpenDevicePartnership:mainfrom
razbhe10:personal/dhadar/use_buffer_size_get_report

Conversation

@daniellehadar

Copy link
Copy Markdown

Add an optional buffer size parameter to GetReport so the I2C device layer can limit the read length to the actual expected payload size instead of always reading the full buffer. This avoids over-reading response in write_read transactions.

Add an optional buffer size parameter to GetReport so the I2C device
layer can limit the read length to the actual expected payload size
instead of always reading the full buffer. This avoids over-reading
on devices that are sensitive to read length in write_read transactions.
RobertZ2011
RobertZ2011 previously approved these changes Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants