diff options
-rw-r--r-- | decoders/i2c/pd.py | 3 | ||||
-rw-r--r-- | decoders/parallel/pd.py | 2 |
2 files changed, 2 insertions, 3 deletions
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]: diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index 748cb2b..db9b371 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -177,7 +177,7 @@ class Decoder(srd.Decoder): if self.has_channel(i): conds.append({i: 'e'}) while True: - self.handle_bits(self.wait(conds[:])[1:]) + self.handle_bits(self.wait(conds)[1:]) else: # Sample on the rising or falling CLK edge (depends on config). while True: |