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
Strip any leading null characters from data before trying to parse message
pyserial_fix
Ryan
11 years ago
parent
0b7f3667e4
commit
7b4b8a045d
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
alarmdecoder/decoder.py
+ 2
- 0
alarmdecoder/decoder.py
View File
@@ -294,6 +294,8 @@ class AlarmDecoder(object):
:returns: :py:class:`~alarmdecoder.messages.Message`
"""
data = data.lstrip('\0')
if data is None:
raise InvalidMessageError()
Write
Preview
Loading…
Cancel
Save