From 7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 16 Oct 2014 09:35:27 +0200 Subject: uart: Emit databyte and bits list at the same time. This will allow for much simpler code in stacked PDs. Adapt stacked PDs to new API. --- decoders/pan1321/pd.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoders/pan1321/pd.py') diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index 60e7549..b70defc 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -136,6 +136,9 @@ class Decoder(srd.Decoder): if ptype != 'DATA': return + # We're only interested in the byte value (not individual bits). + pdata = pdata[0] + # If this is the start of a command/reply, remember the start sample. if self.cmd[rxtx] == '': self.ss_block = ss -- cgit v1.2.3-70-g09d2