]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart.py
srd: I2C: No need for underscores in string cmds.
[libsigrokdecode.git] / decoders / uart.py
index a72578fd132cf958c33be906c33fc98f0c8870a6..760a590c0a9fd477d7ccb2cfbf637782ec4a999b 100644 (file)
@@ -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)
-