X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fxfp%2Fpd.py;h=b8ec8edb22920cc2fbd012dcf952d7535c137efa;hb=66a6eee7b0783f816187e75324df09a729a4070e;hp=63e8aec148f9958e7e87f0595fbaec147dd87785;hpb=780770f1295b7fdeb4481eb42623bad5da1e19a7;p=libsigrokdecode.git diff --git a/decoders/xfp/pd.py b/decoders/xfp/pd.py index 63e8aec..b8ec8ed 100644 --- a/decoders/xfp/pd.py +++ b/decoders/xfp/pd.py @@ -191,7 +191,7 @@ AUX_TYPES = [ ] class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'xfp' name = 'XFP' longname = '10 Gigabit Small Form Factor Pluggable Module (XFP)' @@ -199,10 +199,10 @@ class Decoder(srd.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['xfp'] - annotations = [ - ['fieldnames-and-values', 'XFP structure field names and values'], - ['fields', 'XFP structure fields'], - ] + annotations = ( + ('fieldnames-and-values', 'XFP structure field names and values'), + ('fields', 'XFP structure fields'), + ) def __init__(self, **kwargs): # Received data items, used as an index into samplenum/data