From: Bert Vermeulen Date: Mon, 10 Mar 2014 09:35:41 +0000 (+0100) Subject: ir_rc5: Change PD options to be a tuple of dictionaries. X-Git-Tag: libsigrokdecode-0.3.0~61 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d1e2129c7b01a760d48bcc8e7fc12956a62698c1;p=libsigrokdecode.git ir_rc5: Change PD options to be a tuple of dictionaries. --- diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index ad2b4a5..a42c86f 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -34,10 +34,12 @@ class Decoder(srd.Decoder): {'id': 'ir', 'name': 'IR', 'desc': 'IR data line'}, ] optional_probes = [] - options = { - 'polarity': ['Polarity', 'active-low'], - 'protocol': ['Protocol type', 'standard'], - } + options = ( + {'id': 'polarity', 'desc': 'Polarity', 'default': 'active-low', + 'values': ('active-low', 'active-high')}, + {'id': 'protocol', 'desc': 'Protocol type', 'default': 'standard', + 'values': ('standard', 'extended')}, + ) annotations = [ ['bit', 'Bit'], ['startbit1', 'Startbit 1'],