]> sigrok.org Git - libsigrokdecode.git/commitdiff
dsi: Add a TODO comment for proper self.wait() usage.
authorUwe Hermann <redacted>
Mon, 9 Dec 2019 20:21:00 +0000 (21:21 +0100)
committerUwe Hermann <redacted>
Tue, 10 Dec 2019 20:38:05 +0000 (21:38 +0100)
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

index ea27079cecdee9c27d661f7193e94eac1a0fb97e..c7cab8082c37f94e1e85bca09781572117e41833 100644 (file)
@@ -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.