You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REPORT_ID=2defprocess_output_reports():
report=hid_device.get_last_received_report(REPORT_ID)
ifreportisNone:
return# process report bytes
Behavior
Documentation states that in the absence of report the function should return None, otherwise - bytes object with report data. I assume that if there is a report, it returns it, and subsequent calls will again return None until new report is received.
Behavior observed: regardless of prior receiving a report, it always returns bytes object. First returned report contains just zeros, later - last received report data (regardless of how many times you call it). The later behavior makes it impossible to detect when a new report is actually received.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
CircuitPython version
Code/REPL
Behavior
Documentation states that in the absence of report the function should return None, otherwise - bytes object with report data. I assume that if there is a report, it returns it, and subsequent calls will again return None until new report is received.
Behavior observed: regardless of prior receiving a report, it always returns bytes object. First returned report contains just zeros, later - last received report data (regardless of how many times you call it). The later behavior makes it impossible to detect when a new report is actually received.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: