]> sigrok.org Git - libsigrokdecode.git/commitdiff
jitter: fixes an error when a miss clock/signal is detected
authorSebastien Bourdelin <redacted>
Wed, 12 Nov 2014 17:42:03 +0000 (12:42 -0500)
committerUwe Hermann <redacted>
Sun, 23 Nov 2014 21:29:07 +0000 (22:29 +0100)
Signed-off-by: Sebastien Bourdelin <redacted>
decoders/jitter/pd.py

index b6564adf32403823ec287c998dddd580e27653d9..0ddeea524dfd622d1502160e39d7524960a146f6 100644 (file)
@@ -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.