X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmlx90614%2Fpd.py;h=fec3334fd81149450943580a1be9e8b52dc87d6a;hb=00962e763e610d8535dd9df1ac97377b3fb727a7;hp=08c7a7bd580c7225fd688f953d8399ccda3a1245;hpb=9f2f42c064e8a7100cee13460a7a3638f468f56a;p=libsigrokdecode.git diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index 08c7a7b..fec3334 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -29,20 +29,17 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['i2c'] outputs = ['mlx90614'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['celsius', 'Temperature in degrees Celsius'], - ['kelvin', 'Temperature in Kelvin'], - ] + annotations = ( + ('celsius', 'Temperature in degrees Celsius'), + ('kelvin', 'Temperature in Kelvin'), + ) def __init__(self, **kwargs): self.state = 'IGNORE START REPEAT' self.data = [] def start(self): - # self.out_proto = self.register(srd.OUTPUT_PYTHON) + # self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data):