X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmxc6225xu%2Fpd.py;h=2f09488d2e2d5746e69139b1f84505e61f721291;hb=04ff49263b0a462250d2301e6d4d17db5904a8d3;hp=c1a2a810a9a3d560b6b78df94ecda135b19be41d;hpb=da9bcbd9f45b0153465c55ec726a0d76f6d7f01e;p=libsigrokdecode.git diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index c1a2a81..2f09488 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -60,7 +60,7 @@ status = { } class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'mxc6225xu' name = 'MXC6225XU' longname = 'MEMSIC MXC6225XU' @@ -68,9 +68,6 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['i2c'] outputs = ['mxc6225xu'] - optional_probes = ( - {'id': 'int', 'name': 'INT', 'desc': 'DTOS interrupt output pin'}, - ) annotations = ( ('text', 'Human-readable text'), ) @@ -79,7 +76,6 @@ class Decoder(srd.Decoder): self.state = 'IDLE' def start(self): - # self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): @@ -217,6 +213,3 @@ class Decoder(srd.Decoder): self.state = 'IDLE' else: pass # TODO? - else: - raise Exception('Invalid state: %s' % self.state) -