X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmxc6225xu%2Fpd.py;h=de7efafc9bdab7f83eb46fadda50d592267c9e3e;hp=39564a957f1e4d0ea4557c9316f82060d2eae704;hb=be465111b552c7c2a2262ac49758a30a8bf1b1d5;hpb=24c74fd30fb161837c5f8b01baf3c0fe2dfa4ed5 diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index 39564a9..de7efaf 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Uwe Hermann ## @@ -82,9 +82,9 @@ class Decoder(srd.Decoder): def __init__(self, **kwargs): self.state = 'IDLE' - def start(self, metadata): - # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mxc6225xu') - self.out_ann = self.add(srd.OUTPUT_ANN, 'mxc6225xu') + def start(self): + # self.out_proto = self.register(srd.OUTPUT_PYTHON) + self.out_ann = self.register(srd.OUTPUT_ANN) def report(self): pass @@ -225,5 +225,5 @@ class Decoder(srd.Decoder): else: pass # TODO? else: - raise Exception('Invalid state: %d' % self.state) + raise Exception('Invalid state: %s' % self.state)