X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fonewire_network%2Fpd.py;h=23402a63ebae8dc86147b0f9a458cfebc8439478;hp=a80132e2a23a41d5151c097ce9e2c185a0999d4e;hb=12851357e784b893e24880efc6cd22a0cbcc64ce;hpb=c515eed7ef7a04a42b5b34abd308e08d6942835e diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py index a80132e..23402a6 100644 --- a/decoders/onewire_network/pd.py +++ b/decoders/onewire_network/pd.py @@ -33,7 +33,7 @@ command = { } class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'onewire_network' name = '1-Wire network layer' longname = '1-Wire serial communication bus (network layer)' @@ -41,12 +41,9 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['onewire_link'] outputs = ['onewire_network'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['text', 'Human-readable text'], - ] + annotations = ( + ('text', 'Human-readable text'), + ) def __init__(self, **kwargs): self.beg = 0