]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/rfm12/pd.py
spiflash: Perf tweak: Build handler lookup table once per decoder
[libsigrokdecode.git] / decoders / rfm12 / pd.py
index 30653838629495f8dc3cecf8c6cf5637b460489b..46e5b07bfe7d7489cbf344445d09107b0e028383 100644 (file)
@@ -43,7 +43,7 @@ class Decoder(srd.Decoder):
         ('interpretation', 'Interpretation', (5,)),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.mosi_bytes, self.miso_bytes = [], []
         self.mosi_bits, self.miso_bits = [], []
         self.row_pos = [0, 0, 0]
@@ -460,7 +460,7 @@ class Decoder(srd.Decoder):
         else:
             c = '%02x %02x' % tuple(cmd)
             r = '%02x %02x' % tuple(ret)
-            self.putx(0, 16, ['Uknown command: %s (reply: %s)!' % (c, r)])
+            self.putx(0, 16, ['Unknown command: %s (reply: %s)!' % (c, r)])
 
     def decode(self, ss, es, data):
         ptype, mosi, miso = data