diff options
-rw-r--r-- | decoders/signature/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/signature/pd.py b/decoders/signature/pd.py index 65b86a2..aebd5b4 100644 --- a/decoders/signature/pd.py +++ b/decoders/signature/pd.py @@ -135,7 +135,7 @@ class Decoder(srd.Decoder): started = False else: self.putb(last_samplenum, [data, [str(data)]]) - incoming = (bin(shiftreg & 0b0000_0010_1001_0001).count('1') + data) & 1 + incoming = (bin(shiftreg & 0x0291).count('1') + data) & 1 shiftreg = (incoming << 15) | (shiftreg >> 1) prev_start = start prev_stop = stop |