summaryrefslogtreecommitdiff
path: root/decoders/dsi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-12-09 21:21:00 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-12-10 21:38:05 +0100
commita8a139edd96701b0a26234665dadb253d2ea5b7d (patch)
tree5e50b9c293d5c1256747c144adb542cdd046cc22 /decoders/dsi
parentf8c24e2e58ee76e6bdc50b87060e2efb7e8838ba (diff)
downloadlibsigrokdecode-a8a139edd96701b0a26234665dadb253d2ea5b7d.tar.gz
libsigrokdecode-a8a139edd96701b0a26234665dadb253d2ea5b7d.zip
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.
Diffstat (limited to 'decoders/dsi')
-rw-r--r--decoders/dsi/pd.py1
1 files changed, 1 insertions, 0 deletions
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.