X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fpan1321%2Fpd.py;h=b70defc4f852b70b9831ef38529c38488bbb8fa8;hb=9821622af021360a92334d1a6b465c8e3aab90b6;hp=7edd1c893b07a091ab4a9477a190dd4b480ebaad;hpb=e28f7aee3b96afeb543e0c3c29e3950ddd61a490;p=libsigrokdecode.git diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index 7edd1c8..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 @@ -156,4 +159,3 @@ class Decoder(srd.Decoder): self.handle_host_command(rxtx, self.cmd[rxtx][:-2]) self.cmd[rxtx] = '' -