diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-09 19:18:02 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-09 19:18:02 +0200 |
commit | 31673692b0d87e0e3a4df94a6343d8bb079371aa (patch) | |
tree | 0a0ad71cbe26c7798853111473b037f2c1f03e5c /decoders/miller | |
parent | 4e7f2d702807d39bc5cd3835f02ff9d773b0cea1 (diff) | |
download | libsigrokdecode-31673692b0d87e0e3a4df94a6343d8bb079371aa.tar.gz libsigrokdecode-31673692b0d87e0e3a4df94a6343d8bb079371aa.zip |
miller: Add missing 'binary' meta-data.
Diffstat (limited to 'decoders/miller')
-rw-r--r-- | decoders/miller/pd.py | 5 |
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: |