X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fonewire_network%2Fpd.py;h=19ee649caeccf9d23a457f07c7c29a50867f932c;hb=cd8eb52870200196b12d6950eead62d46864cd00;hp=6ab8f8e2550dc5194a5fc7223e66685db09b6157;hpb=be465111b552c7c2a2262ac49758a30a8bf1b1d5;p=libsigrokdecode.git diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py index 6ab8f8e..19ee649 100644 --- a/decoders/onewire_network/pd.py +++ b/decoders/onewire_network/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# 1-Wire protocol decoder (network layer) - import sigrokdecode as srd # Dictionary of ROM commands and their names, next state. @@ -47,7 +45,7 @@ class Decoder(srd.Decoder): optional_probes = [] options = {} annotations = [ - ['Text', 'Human-readable text'], + ['text', 'Human-readable text'], ] def __init__(self, **kwargs): @@ -65,9 +63,6 @@ class Decoder(srd.Decoder): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Helper function for most annotations. self.put(self.beg, self.end, self.out_ann, data)