From 72a6cad40c4df6e5e45216cd5f77d1b195168359 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 9 Aug 2013 19:13:20 +0200 Subject: pan1321: Properly check for \r\n, not just \n. --- decoders/pan1321/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/pan1321') 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. -- cgit v1.2.3-70-g09d2