From: Sebastien Bourdelin Date: Wed, 12 Nov 2014 17:42:03 +0000 (-0500) Subject: jitter: fixes an error when a miss clock/signal is detected X-Git-Tag: libsigrokdecode-0.4.0~144 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=961699aaab1e44dab827c9f1884100b87a0a97fd;p=libsigrokdecode.git jitter: fixes an error when a miss clock/signal is detected Signed-off-by: Sebastien Bourdelin --- diff --git a/decoders/jitter/pd.py b/decoders/jitter/pd.py index b6564ad..0ddeea5 100644 --- a/decoders/jitter/pd.py +++ b/decoders/jitter/pd.py @@ -125,7 +125,7 @@ class Decoder(srd.Decoder): # occurs while we are waiting for a clock, # we increase the missed signal counter. self.sig_missed += 1 - self.put(ss, self.samplenum, self.out_sig_missed, self.sig_missed) + self.put(self.samplenum, self.samplenum, self.out_sig_missed, self.sig_missed) self.putm([2, ['Missed signal', 'MS']]) # No clock edge found, we have done everything we # can with this sample. @@ -153,7 +153,7 @@ class Decoder(srd.Decoder): # occurs while we are waiting for a resulting # signal, we increase the missed clock counter. self.clk_missed += 1 - self.put(ss, self.samplenum, self.out_clk_missed, self.clk_missed) + self.put(self.samplenum, self.samplenum, self.out_clk_missed, self.clk_missed) self.putm([1, ['Missed clock', 'MC']]) # No resulting signal edge found, we have done # everything we can with this sample.