From: Uwe Hermann Date: Sun, 9 Sep 2018 17:18:02 +0000 (+0200) Subject: miller: Add missing 'binary' meta-data. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=31673692b0d87e0e3a4df94a6343d8bb079371aa;p=libsigrokdecode.git miller: Add missing 'binary' meta-data. --- 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: