From 4180cba9a51acd32f69f0f8628bb746ea3e12be6 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 31 Mar 2012 17:04:50 +0200 Subject: srd: Decoders: Fix/simplify samplenum usage. --- decoders/dcf77/dcf77.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'decoders/dcf77') 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. -- cgit v1.2.3-70-g09d2