summaryrefslogtreecommitdiff
path: root/decoders/i2c/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-03-02 00:03:16 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-03 20:12:53 +0100
commitfcd5d23a05282728ad7693f997b1b81d67d409cb (patch)
tree2ee94e2aa9865e53d26b7cc7cc3b0c37d6586baf /decoders/i2c/pd.py
parent01b60707d7aa8db402c9288472c102da483cad39 (diff)
downloadlibsigrokdecode-fcd5d23a05282728ad7693f997b1b81d67d409cb.tar.gz
libsigrokdecode-fcd5d23a05282728ad7693f997b1b81d67d409cb.zip
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.
Diffstat (limited to 'decoders/i2c/pd.py')
-rw-r--r--decoders/i2c/pd.py3
1 files changed, 1 insertions, 2 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]: