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
Fixed string encoding used with send.
pyserial_fix
Scott Petersen
10 years ago
parent
b22e7c3d28
commit
d8958eaad9
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
alarmdecoder/decoder.py
+ 2
- 2
alarmdecoder/decoder.py
View File
@@ -213,13 +213,13 @@ class AlarmDecoder(object):
"""
if self._device:
self._device.write(data)
self._device.write(
str.encode(
data)
)
def get_config(self):
"""
Retrieves the configuration from the device. Called automatically by :py:meth:`_on_open`.
"""
self.send(
b
"C\r")
self.send("C\r")
def save_config(self):
"""
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Cancel
Save