X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fi2c%2Fpd.py;fp=decoders%2Fi2c%2Fpd.py;h=d2f8bc454fed3c00341fb986de57c7defdee2e3d;hp=6172fb438c50f9295c8786fe47d0d9672e4e4f85;hb=fcd5d23a05282728ad7693f997b1b81d67d409cb;hpb=01b60707d7aa8db402c9288472c102da483cad39;ds=sidebyside diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 6172fb4..d2f8bc4 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -272,8 +272,7 @@ class Decoder(srd.Decoder): # a) Data sampling of receiver: SCL = rising, and/or # b) START condition (S): SCL = high, SDA = falling, and/or # c) STOP condition (P): SCL = high, SDA = rising - conds = [{0: 'r'}, {0: 'h', 1: 'f'}, {0: 'h', 1: 'r'}] - pins = self.wait(conds[:]) # TODO + pins = self.wait([{0: 'r'}, {0: 'h', 1: 'f'}, {0: 'h', 1: 'r'}]) # Check which of the condition(s) matched and handle them. if self.matched[0]: