X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fedid%2Fpd.py;h=8af10aee7e65dba082d0c8753f92176a52cabe4a;hb=22fc7ace72f3165c98208a8f544156e04a709639;hp=f27cf93b80e4ccf2da1a1b14112b9f5b2308da6d;hpb=780770f1295b7fdeb4481eb42623bad5da1e19a7;p=libsigrokdecode.git diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index f27cf93..8af10ae 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -68,12 +68,12 @@ xy_ratio = [ (16, 9), ] -# Annotation types +# Annotation classes ANN_FIELDS = 0 ANN_SECTIONS = 1 class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'edid' name = 'EDID' longname = 'Extended Display Identification Data' @@ -81,10 +81,10 @@ class Decoder(srd.Decoder): license = 'gplv3+' inputs = ['i2c'] outputs = ['edid'] - annotations = [ - ['fields', 'EDID structure fields'], - ['sections', 'EDID structure sections'], - ] + annotations = ( + ('fields', 'EDID structure fields'), + ('sections', 'EDID structure sections'), + ) def __init__(self, **kwargs): self.state = None