From decde15ecb51b3326b31019af61e0a729b9c61d0 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 25 Jan 2012 22:11:38 +0100 Subject: srd: All PDs: Various fixes, cosmetics. - List all API methods and metadata variables in all PDs to make things easier and more consistent for new PD writers. - Fix probe assignment in a few PDs. - Raise exceptions upon invalid states of the PD state machines (bug). --- decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'decoders/ebr30a_i2c_demux') diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py index 1c704e3..59649fd 100644 --- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py +++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py @@ -48,8 +48,9 @@ class Decoder(srd.Decoder): longdesc = 'TODO.' license = 'gplv2+' inputs = ['i2c'] - outputs = ['i2c-axp199', 'i2c-h8563s', 'i2c-accel'] + outputs = ['i2c-axp199', 'i2c-h8563s', 'i2c-accel'] # TODO: type vs. inst. probes = [] + extra_probes = [] options = {} annotations = [] @@ -102,4 +103,6 @@ class Decoder(srd.Decoder): print('Error: Could not determine correct stream!') # FIXME self.packets = [] self.stream = -1 + else: + pass # Do nothing, only add the I2C packet to our cache. -- cgit v1.2.3-70-g09d2