From a8a139edd96701b0a26234665dadb253d2ea5b7d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 9 Dec 2019 21:21:00 +0100 Subject: dsi: Add a TODO comment for proper self.wait() usage. All PDs where "trivial" self.wait() conversion was used now have this specific comment, so it's easy to grep for. --- decoders/dsi/pd.py | 1 + 1 file changed, 1 insertion(+) (limited to 'decoders/dsi') diff --git a/decoders/dsi/pd.py b/decoders/dsi/pd.py index ea27079..c7cab80 100644 --- a/decoders/dsi/pd.py +++ b/decoders/dsi/pd.py @@ -111,6 +111,7 @@ class Decoder(srd.Decoder): raise SamplerateError('Cannot decode without samplerate.') bit = 0 while True: + # TODO: Come up with more appropriate self.wait() conditions. (self.dsi,) = self.wait() if self.options['polarity'] == 'active-high': self.dsi ^= 1 # Invert. -- cgit v1.2.3-70-g09d2