X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fdsi%2Fpd.py;h=b5faf6f699b0ed111e87547db9551b135a641398;hb=317eaa7fd83fb049db97e863a306992a34fcf490;hp=7ce95179f9aa7f9a254793b37229ecfcd235253f;hpb=6cbba91f23b9f9ace75b4722c9c0776b9211008d;p=libsigrokdecode.git diff --git a/decoders/dsi/pd.py b/decoders/dsi/pd.py index 7ce9517..b5faf6f 100644 --- a/decoders/dsi/pd.py +++ b/decoders/dsi/pd.py @@ -47,7 +47,7 @@ class Decoder(srd.Decoder): ) annotation_rows = ( ('bits', 'Bits', (0,)), - ('raw', 'Raw data', (3,)), + ('raw-vals', 'Raw data', (3,)), ('fields', 'Fields', (1, 2)), ) @@ -56,7 +56,6 @@ class Decoder(srd.Decoder): def reset(self): self.samplerate = None - self.samplenum = None self.edges, self.bits, self.ss_es_bits = [], [], [] self.state = 'IDLE' @@ -112,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.