summaryrefslogtreecommitdiff
path: root/decoders/miller/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/miller/pd.py')
-rw-r--r--decoders/miller/pd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/decoders/miller/pd.py b/decoders/miller/pd.py
index 7ccd75e..562d14c 100644
--- a/decoders/miller/pd.py
+++ b/decoders/miller/pd.py
@@ -51,6 +51,9 @@ class Decoder(srd.Decoder):
('bitstring', 'Bitstring'),
)
annotation_rows = tuple((u, v, (i,)) for i, (u, v) in enumerate(annotations))
+ binary = (
+ ('raw', 'Raw binary'),
+ )
def __init__(self):
self.samplerate = None
@@ -176,7 +179,7 @@ class Decoder(srd.Decoder):
numbytes = numbits // 8 + (numbits % 8 > 0)
bytestring = bitvalue.to_bytes(numbytes, 'little')
- self.put(int(stringstart), int(stringend), self.out_binary, [1, bytestring])
+ self.put(int(stringstart), int(stringend), self.out_binary, [0, bytestring])
def decode(self):
while True: