Commit af8e9149 authored by carlosperate's avatar carlosperate

Ignore unicode errors on serial port encoding

parent fad1c53f
......@@ -48,7 +48,7 @@ def string(buffer):
if sys.version_info[0] == 3:
return ''.join(s)
else:
return bytearray(s).decode('utf8')
return bytearray(s).decode('utf8', errors='replace')
class GUID(ctypes.Structure):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment