]> sigrok.org Git - libsigrokdecode.git/commitdiff
onewire_link: Fix typos.
authorUwe Hermann <redacted>
Tue, 8 Oct 2013 22:30:35 +0000 (00:30 +0200)
committerUwe Hermann <redacted>
Tue, 8 Oct 2013 22:36:58 +0000 (00:36 +0200)
decoders/onewire_link/pd.py

index e3e963b749ceec27f62f4d1ae724d9e5934f3402..76e9b24bfe84d95abea2362052b0d8fd0b4fceb6 100644 (file)
@@ -222,7 +222,7 @@ class Decoder(srd.Decoder):
                 # Check if this was a reset cycle.
                 t = self.samplenum - self.fall
                 if t > self.cnt_normal_reset:
-                    # Save the sample number for the falling edge.
+                    # Save the sample number for the rising edge.
                     self.rise = self.samplenum
                     self.putfr([2, ['Reset']])
                     self.state = 'WAIT FOR PRESENCE DETECT'
@@ -234,7 +234,7 @@ class Decoder(srd.Decoder):
                     self.bit_cnt = 0
                     self.command = 0
                 elif (t > self.cnt_overdrive_reset) and self.overdrive:
-                    # Save the sample number for the falling edge.
+                    # Save the sample number for the rising edge.
                     self.rise = self.samplenum
                     self.putfr([2, ['Reset']])
                     self.state = "WAIT FOR PRESENCE DETECT"