diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-09 17:31:32 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-09 18:00:22 +0200 |
commit | 22fc7ace72f3165c98208a8f544156e04a709639 (patch) | |
tree | 98b15ab45b4f81b34511765688a7df83a6ec03a1 /decoders/i2cfilter/pd.py | |
parent | 21b39043472eeeb2e0155eafc73247f5010af714 (diff) | |
download | libsigrokdecode-22fc7ace72f3165c98208a8f544156e04a709639.tar.gz libsigrokdecode-22fc7ace72f3165c98208a8f544156e04a709639.zip |
uart/i2cfilter: Don't check multiple-choice options.
For options which only have a limited set of valid values, we don't need
to check (in the PD) whether a valid value was supplied, since the backend
can do that for us.
Diffstat (limited to 'decoders/i2cfilter/pd.py')
-rw-r--r-- | decoders/i2cfilter/pd.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 895cc17..1a9f433 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -47,8 +47,6 @@ class Decoder(srd.Decoder): self.out_python = self.register(srd.OUTPUT_PYTHON, proto_id='i2c') if self.options['address'] not in range(0, 127 + 1): raise Exception('Invalid slave (must be 0..127).') - if self.options['direction'] not in ('both', 'read', 'write'): - raise Exception('Invalid direction (valid: read/write/both).') # Grab I²C packets into a local cache, until an I²C STOP condition # packet comes along. At some point before that STOP condition, there |