From: Uwe Hermann Date: Tue, 8 Oct 2013 22:30:35 +0000 (+0200) Subject: onewire_link: Fix typos. X-Git-Tag: libsigrokdecode-0.3.0~281 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=015dc33a9fe13c529bd84fcfdca39d3fa2f7c293;p=libsigrokdecode.git onewire_link: Fix typos. --- diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py index e3e963b..76e9b24 100644 --- a/decoders/onewire_link/pd.py +++ b/decoders/onewire_link/pd.py @@ -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"