From fcd5d23a05282728ad7693f997b1b81d67d409cb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 2 Mar 2017 00:03:16 +0100 Subject: Drop obsolete workarounds in PDs. Some PDs were using a temporary workaround for (as it turned out) a refcounting issue that was fixed in 066fbafdc3ba734a73b5f7fcfa1dbae67ddebf8a. --- decoders/i2c/pd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoders/i2c') 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]: -- cgit v1.2.3-70-g09d2