X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Frfm12%2Fpd.py;h=ab208237fca7240f0a2eada156a318443b4c2a42;hp=55afd5dab9c06e2685cd2438a73581aebaff3427;hb=4539e9ca58966ce3c9cad4801b16c315e86ace01;hpb=c9021bc926a42284baf99c174eba4a52b412847e diff --git a/decoders/rfm12/pd.py b/decoders/rfm12/pd.py index 55afd5d..ab20823 100644 --- a/decoders/rfm12/pd.py +++ b/decoders/rfm12/pd.py @@ -1,7 +1,7 @@ ## ## This file is part of the libsigrokdecode project. ## -## Copyright (C) 2014 Sławek Piotrowski +## Copyright (C) 2014 Sławek Piotrowski ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -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 @@ -25,7 +24,7 @@ class Decoder(srd.Decoder): id = 'rfm12' name = 'RFM12' longname = 'RFM12 control protocol' - desc = 'Protocol for controlling RFM12 wireless transceivers from HoperRF' + desc = 'HopeRF RFM12 wireless transceiver control protocol.' license = 'gplv2+' inputs = ['spi'] outputs = ['rfm12'] @@ -43,7 +42,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 +459,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