X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Flpc%2Fpd.py;h=2a88e30473841140682d14fb513a3044158661bf;hb=b8c8dc8a649ad0a76bccbfae7198cc9c8cb2ccda;hp=095c8b576f412a44be95e5d9a74e5554fab60a05;hpb=5d6d8896ded87ce72b42e68c77120008b2d1b779;p=libsigrokdecode.git diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py index 095c8b5..2a88e30 100644 --- a/decoders/lpc/pd.py +++ b/decoders/lpc/pd.py @@ -122,7 +122,7 @@ class Decoder(srd.Decoder): {'id': 'lsmi', 'name': 'LSMI#', 'desc': 'System Management Interrupt'}, ) annotations = ( - ('warnings', 'Warnings'), + ('warning', 'Warning'), ('start', 'Start'), ('cycle-type', 'Cycle-type/direction'), ('addr', 'Address'), @@ -132,7 +132,7 @@ class Decoder(srd.Decoder): ('tar2', 'Turn-around cycle 2'), ) annotation_rows = ( - ('data', 'Data', (1, 2, 3, 4, 5, 6, 7)), + ('data-vals', 'Data', (1, 2, 3, 4, 5, 6, 7)), ('warnings', 'Warnings', (0,)), ) @@ -315,13 +315,9 @@ class Decoder(srd.Decoder): self.state = 'IDLE' def decode(self): + conditions = [{i: 'e'} for i in range(6)] while True: - # TODO: Come up with more appropriate self.wait() conditions. - pins = self.wait() - - # If none of the pins changed, there's nothing to do. - if self.oldpins == pins: - continue + pins = self.wait(conditions) # Store current pin values for the next round. self.oldpins = pins