diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2013-08-09 19:13:20 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2013-09-02 09:05:01 +0200 |
commit | 72a6cad40c4df6e5e45216cd5f77d1b195168359 (patch) | |
tree | 22e7f02aa8d5873e8c564f0e7b27a65772d4137e | |
parent | db9ebbc2143f4b744b273ed0d5bbfd4b02aa8db9 (diff) | |
download | libsigrokdecode-72a6cad40c4df6e5e45216cd5f77d1b195168359.tar.gz libsigrokdecode-72a6cad40c4df6e5e45216cd5f77d1b195168359.zip |
pan1321: Properly check for \r\n, not just \n.
-rw-r--r-- | decoders/pan1321/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index 3799612..96d4385 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -116,7 +116,7 @@ class Decoder(srd.Decoder): self.cmd[rxtx] += chr(pdata) # Get packets/bytes until an \r\n sequence is found (end of command). - if self.cmd[rxtx][-1:] != '\n': + if self.cmd[rxtx][-2:] != '\r\n': return # Handle host commands and device replies. |