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/uart/uart.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'decoders/uart') diff --git a/decoders/uart/uart.py b/decoders/uart/uart.py index 6c9fdee..a478c8e 100644 --- a/decoders/uart/uart.py +++ b/decoders/uart/uart.py @@ -265,10 +265,7 @@ class Decoder(srd.Decoder): def decode(self, ss, es, data): # TODO: Either RX or TX could be omitted (optional probe). - for (samplenum, (rx, tx)) in data: - - # TODO: Start counting at 0 or 1? Increase before or after? - self.samplenum += 1 + for (self.samplenum, (rx, tx)) in data: # First sample: Save RX/TX value. if self.oldbit[RX] == None: -- cgit v1.2.3-70-g09d2