summaryrefslogtreecommitdiff
path: root/decoders/dcf77
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-03-31 17:04:50 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-03-31 17:04:50 +0200
commit4180cba9a51acd32f69f0f8628bb746ea3e12be6 (patch)
tree28c2e970361961ee0386ab61224e983a0dd5b6c6 /decoders/dcf77
parent394b74dca66d540cae154dfeb3bea4253db4304d (diff)
downloadlibsigrokdecode-4180cba9a51acd32f69f0f8628bb746ea3e12be6.tar.gz
libsigrokdecode-4180cba9a51acd32f69f0f8628bb746ea3e12be6.zip
srd: Decoders: Fix/simplify samplenum usage.
Diffstat (limited to 'decoders/dcf77')
-rw-r--r--decoders/dcf77/dcf77.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/decoders/dcf77/dcf77.py b/decoders/dcf77/dcf77.py
index d8b9d3b..573888f 100644
--- a/decoders/dcf77/dcf77.py
+++ b/decoders/dcf77/dcf77.py
@@ -199,9 +199,7 @@ class Decoder(srd.Decoder):
raise Exception('Invalid DCF77 bit: %d' % c)
def decode(self, ss, es, data):
- for samplenum, (val) in data: # TODO: Handle optional PON.
-
- self.samplenum += 1 # FIXME. Use samplenum. Off-by-one?
+ for (self.samplenum, (val)) in data: # TODO: Handle optional PON.
if self.state == 'WAIT FOR RISING EDGE':
# Wait until the next rising edge occurs.