X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fedid%2Fpd.py;h=adeb6aec20c657fbb040730a362d7cc95d493e09;hb=ef36224880135a05d2fbde8f048ea3fe3f425df9;hp=ba0e0bef8109e5cab83f956a112a075864bc09af;hpb=9e1437a045ef0c7df7e847be148fac6b4c0bbb4b;p=libsigrokdecode.git diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index ba0e0be..adeb6ae 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2012 Bert Vermeulen ## @@ -17,8 +17,6 @@ ## along with this program; if not, see . ## -# EDID protocol decoder - # TODO: # - EDID < 1.3 # - add short annotations @@ -87,8 +85,8 @@ class Decoder(srd.Decoder): optional_probes = [] options = {} annotations = [ - ['EDID fields', 'EDID structure fields'], - ['EDID sections', 'EDID structure sections'], + ['fields', 'EDID structure fields'], + ['sections', 'EDID structure sections'], ] def __init__(self, **kwargs): @@ -100,11 +98,8 @@ class Decoder(srd.Decoder): # Received data self.cache = [] - def start(self, metadata): - self.out_ann = self.add(srd.OUTPUT_ANN, 'edid') - - def report(self): - pass + def start(self): + self.out_ann = self.register(srd.OUTPUT_ANN) def decode(self, ss, es, data): cmd, data = data