X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmxc6225xu%2Fpd.py;h=39e73f7f1c70cfe6bd75e1fa4c01800d4ece2544;hp=8b3dcc993ff830b54cfe3ca42ed382ccc03c1cdc;hb=4539e9ca58966ce3c9cad4801b16c315e86ace01;hpb=486b19ce017c6663be6574dacd0c823304903bca;ds=sidebyside diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index 8b3dcc9..39e73f7 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/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 @@ -72,7 +71,7 @@ class Decoder(srd.Decoder): ('text', 'Human-readable text'), ) - def __init__(self, **kwargs): + def __init__(self): self.state = 'IDLE' def start(self): @@ -97,7 +96,7 @@ class Decoder(srd.Decoder): # Bits[7:7]: INT int_val = (b >> 7) & 1 s = 'unchanged and no' if (int_val == 0) else 'changed or' - ann = 'INT = %d: Orientation %s shake event occured\n' % (int_val, s) + ann = 'INT = %d: Orientation %s shake event occurred\n' % (int_val, s) # Bits[6:5]: SH[1:0] sh = (((b >> 6) & 1) << 1) | ((b >> 5) & 1)