]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart.py
srd: Add initial DCF77 protocol decoder.
[libsigrokdecode.git] / decoders / uart.py
index 24b5ba3a5894bcfa3691c2bf164e9b6a2a894cf2..f0f3bf85065eda1fc3f9a3e1a7ea595f550f72db 100644 (file)
@@ -219,15 +219,15 @@ class Decoder(srd.Decoder):
     }
     annotations = [
         # ANN_ASCII
-        ["ASCII", "TODO: description"],
+        ['ASCII', 'TODO: description'],
         # ANN_DEC
-        ["Decimal", "TODO: description"],
+        ['Decimal', 'TODO: description'],
         # ANN_HEX
-        ["Hex", "TODO: description"],
+        ['Hex', 'TODO: description'],
         # ANN_OCT
-        ["Octal", "TODO: description"],
+        ['Octal', 'TODO: description'],
         # ANN_BITS
-        ["Bits", "TODO: description"],
+        ['Bits', 'TODO: description'],
     ]
 
     def __init__(self, **kwargs):
@@ -416,7 +416,7 @@ class Decoder(srd.Decoder):
         self.put(self.samplenum, self.samplenum, self.out_ann,
                  [ANN_ASCII, ['Stop bit', 'Stop', 'P']])
 
-    def decode(self, timeoffset, duration, data): # TODO
+    def decode(self, ss, es, data): # TODO
         # for (samplenum, (rx, tx)) in data:
         for (samplenum, (rx,)) in data: