diff options
author | Bert Vermeulen <bert@biot.com> | 2014-03-10 10:35:41 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2014-03-10 10:35:41 +0100 |
commit | d1e2129c7b01a760d48bcc8e7fc12956a62698c1 (patch) | |
tree | 79d0a72bc92deefca4f29cc1e88ef19723f56d0b | |
parent | 780770f1295b7fdeb4481eb42623bad5da1e19a7 (diff) | |
download | libsigrokdecode-d1e2129c7b01a760d48bcc8e7fc12956a62698c1.tar.gz libsigrokdecode-d1e2129c7b01a760d48bcc8e7fc12956a62698c1.zip |
ir_rc5: Change PD options to be a tuple of dictionaries.
-rw-r--r-- | decoders/ir_rc5/pd.py | 10 |
1 files changed, 6 insertions, 4 deletions
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'], |