summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decoders/pan1321/pd.py2
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.