X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fadns5020%2Fpd.py;h=0ee3f8b348b79ca111e9e741fec39a9299c7adff;hb=0f4d88071202e6eeb717ce90896cda12a06d336b;hp=bcdb52a0c774e55854d66d7eb4189fd3240e1941;hpb=295b78c7d971e1abd7021d88415523ad66a3e448;p=libsigrokdecode.git diff --git a/decoders/adns5020/pd.py b/decoders/adns5020/pd.py index bcdb52a..0ee3f8b 100644 --- a/decoders/adns5020/pd.py +++ b/decoders/adns5020/pd.py @@ -14,8 +14,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## import sigrokdecode as srd @@ -40,12 +39,12 @@ regs = { } class Decoder(srd.Decoder): - api_version = 2 + api_version = 3 id = 'adns5020' 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 +58,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 = []