Closed anton-dos closed 2 years ago
Erorr in 'get_feature_report' function: data[0] = bytearray((report_id,))
struct.pack('B', report_id) instead bytearray((report_id,)) is a suitable solution for both python versions
P-R https://github.com/apmorton/pyhidapi/pull/43 is addressing the same issue.
https://www.python.org/doc/sunset-python-2/
Erorr in 'get_feature_report' function: data[0] = bytearray((report_id,))
struct.pack('B', report_id) instead bytearray((report_id,)) is a suitable solution for both python versions