X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmaxim_ds28ea00%2Fpd.py;h=6e1125a73c6e4d84f545466bee066a8cfc3dbd9d;hb=9389f2c1b9b74e00d1369e846d4417bf644275d0;hp=ed020d4bf44ec3d732615601da99a7b051853059;hpb=8915b34659332288aab38780d8f10d75c4c83e7f;p=libsigrokdecode.git diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index ed020d4..6e1125a 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Maxim DS28EA00 protocol decoder - import sigrokdecode as srd # Dictionary of FUNCTION commands and their names. @@ -55,7 +53,7 @@ class Decoder(srd.Decoder): ] options = {} annotations = [ - ['Text', 'Human-readable text'], + ['text', 'Human-readable text'], ] def __init__(self, **kwargs): @@ -65,10 +63,7 @@ class Decoder(srd.Decoder): self.rom = 0x0000000000000000 def start(self): - self.out_ann = self.add(srd.OUTPUT_ANN, 'maxim_ds28ea00') - - def report(self): - pass + self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data): self.put(self.ss, self.es, self.out_ann, data)