summaryrefslogtreecommitdiff
path: root/decoders/uart.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-14 21:34:06 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-14 21:34:06 +0100
commita2d2aff27099449deb1a791b3adc05ee610861e6 (patch)
tree6ab5ef16228ef87a4290ce681f81d49233ab2447 /decoders/uart.py
parentea90233eb2e76cca10adf3ed3c016c5b6cb993e1 (diff)
downloadlibsigrokdecode-a2d2aff27099449deb1a791b3adc05ee610861e6.tar.gz
libsigrokdecode-a2d2aff27099449deb1a791b3adc05ee610861e6.zip
srd: I2C: No need for underscores in string cmds.
Diffstat (limited to 'decoders/uart.py')
-rw-r--r--decoders/uart.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/decoders/uart.py b/decoders/uart.py
index a72578f..760a590 100644
--- a/decoders/uart.py
+++ b/decoders/uart.py
@@ -411,7 +411,7 @@ class Decoder(srd.Decoder):
def decode(self, ss, es, data): # TODO
# for (samplenum, (rx, tx)) in data:
- for (samplenum, (rx,)) in data:
+ for (samplenum, (rx)) in data:
# TODO: Start counting at 0 or 1? Increase before or after?
self.samplenum += 1
@@ -441,8 +441,3 @@ class Decoder(srd.Decoder):
self.oldrx = rx
# self.oldtx = tx
- # if proto != []:
- # self.put(0, 0, self.out_proto, proto)
- # if ann != []:
- # self.put(0, 0, self.out_ann, ann)
-