X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fds1307%2Fpd.py;h=68943d475e006c4f38f363006416b433f6ee591e;hb=66a6eee7b0783f816187e75324df09a729a4070e;hp=6c36f04bacb31cb7f95d8235c7d6ea964565b96d;hpb=780770f1295b7fdeb4481eb42623bad5da1e19a7;p=libsigrokdecode.git diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index 6c36f04..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,9 +44,9 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['i2c'] outputs = ['ds1307'] - annotations = [ - ['text', 'Human-readable text'], - ] + annotations = ( + ('text', 'Human-readable text'), + ) def __init__(self, **kwargs): self.state = 'IDLE'