diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2011-11-02 00:03:54 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2011-11-02 00:03:54 +0000 |
commit | 2252f23a558f23f9d13b7006da9ab1fd6a7f312e (patch) | |
tree | 4eb54109fcc7d468fc8c6762bee7bd91bc932b1e /pyserial/serial/tools | |
parent | 06281be6d6b3b081d495e0e5743e22c76341af7c (diff) | |
download | pyserial-git-2252f23a558f23f9d13b7006da9ab1fd6a7f312e.tar.gz |
fix for bug 3414327
Diffstat (limited to 'pyserial/serial/tools')
-rw-r--r-- | pyserial/serial/tools/list_ports_windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyserial/serial/tools/list_ports_windows.py b/pyserial/serial/tools/list_ports_windows.py index 72410d2..5b3420d 100644 --- a/pyserial/serial/tools/list_ports_windows.py +++ b/pyserial/serial/tools/list_ports_windows.py @@ -40,7 +40,7 @@ def string(buffer): s = []
for c in buffer:
if c == 0: break
- s.append(chr(c))
+ s.append(chr(c & 0xff)) # "& 0xff": hack to convert signed to unsigned
return ''.join(s)
|