summaryrefslogtreecommitdiff
path: root/decoders/uart/uart.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/uart/uart.py')
-rw-r--r--decoders/uart/uart.py5
1 files changed, 1 insertions, 4 deletions
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: