X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fds1307%2Fpd.py;h=68943d475e006c4f38f363006416b433f6ee591e;hb=66a6eee7b0783f816187e75324df09a729a4070e;hp=97431e01587dd6d4f933cc6f7b5e295153766f0f;hpb=9f2f42c064e8a7100cee13460a7a3638f468f56a;p=libsigrokdecode.git diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index 97431e0..68943d4 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -36,7 +36,7 @@ def bcd2int(b): return (b & 0x0f) + ((b >> 4) * 10) class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'ds1307' name = 'DS1307' longname = 'Dallas DS1307' @@ -44,12 +44,9 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['i2c'] outputs = ['ds1307'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['text', 'Human-readable text'], - ] + annotations = ( + ('text', 'Human-readable text'), + ) def __init__(self, **kwargs): self.state = 'IDLE'