From: Uwe Hermann Date: Mon, 9 Dec 2019 20:21:00 +0000 (+0100) Subject: dsi: Add a TODO comment for proper self.wait() usage. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a8a139edd96701b0a26234665dadb253d2ea5b7d;p=libsigrokdecode.git 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. --- 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.