X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2cfilter%2Fpd.py;h=1a9f43328b6a37c8f09b39695f75b405c4d62e93;hp=895cc179045333d83280a7031edf40933612bfb4;hb=22fc7ace72f3165c98208a8f544156e04a709639;hpb=e28f7aee3b96afeb543e0c3c29e3950ddd61a490 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