]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk/pd.py
Various PDs: Minor consistency fixes.
[libsigrokdecode.git] / decoders / nunchuk / pd.py
index 4136945cb6f744c56cf8a47edcd492cd7f7026c3..8ed98e66e092447ca7705ad6c5ded3d23080b29d 100644 (file)
@@ -21,7 +21,7 @@
 import sigrokdecode as srd
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'nunchuk'
     name = 'Nunchuk'
     longname = 'Nintendo Wii Nunchuk'
@@ -202,6 +202,4 @@ class Decoder(srd.Decoder):
             else:
                 # self.putx([14, ['Ignoring: %s (data=%s)' % (cmd, databyte)]])
                 pass
-        else:
-            raise Exception('Invalid state: %s' % self.state)