]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/adns5020/pd.py
spiflash: Handle CS# transitions, allow variable-length transfers
[libsigrokdecode.git] / decoders / adns5020 / pd.py
index bcdb52a0c774e55854d66d7eb4189fd3240e1941..972227e96c93a3c05b1493817ae844179833e131 100644 (file)
@@ -45,7 +45,7 @@ class Decoder(srd.Decoder):
     name = 'ADNS-5020'
     longname = 'Avago ADNS-5020 optical mouse sensor'
     desc = 'Bidirectional command and data over an SPI-like protocol.'
-    license = 'gplv2'
+    license = 'gplv2+'
     inputs = ['spi']
     outputs = ['adns5020']
     annotations = (
@@ -59,7 +59,7 @@ class Decoder(srd.Decoder):
         ('warnings', 'Warnings', (2,)),
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.ss_cmd, self.es_cmd = 0, 0
         self.mosi_bytes = []