apmorton / pyhidapi

hidapi bindings in ctypes
MIT License
111 stars 42 forks source link

Python 3 support in get_feature_report #21

Closed Qbicz closed 5 years ago

Qbicz commented 5 years ago

Elements of ctypes string buffer are of type str in Python 2 and bytes in Python 3. Function chr() returns str in both versions and assignment fails in Python 3. Using bytearray works in both Python 2 and Python 3.

Signed-off-by: Kubicz, Filip filip.kubicz@nordicsemi.no