diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-16 09:35:27 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-16 11:37:13 +0200 |
commit | 7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84 (patch) | |
tree | 0929b5e10db8df4147b31623c6ef2d67c80fd9c1 /decoders/pan1321 | |
parent | bd6594c0cdae0a525e147c6e33e496ff87823d16 (diff) | |
download | libsigrokdecode-7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84.tar.gz libsigrokdecode-7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84.zip |
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.
Diffstat (limited to 'decoders/pan1321')
-rw-r--r-- | decoders/pan1321/pd.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |