This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
alarmdecoder
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Another 2to3 workaround.
pyserial_fix
Scott Petersen
8 years ago
parent
50846acf82
commit
5244e91fb8
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
alarmdecoder/decoder.py
+ 3
- 1
alarmdecoder/decoder.py
View File
@@ -248,7 +248,9 @@ class AlarmDecoder(object):
"""
if self._device:
self._device.write(str.encode(data))
if isinstance(data, str):
data = str.encode(data)
self._device.write(data)
def get_config(self):
"""
Write
Preview
Loading…
Cancel
Save