Closed Qbicz closed 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
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