summaryrefslogtreecommitdiff
path: root/decoders/i2cdemux/i2cdemux.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-25 22:11:38 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-25 23:49:32 +0100
commitdecde15ecb51b3326b31019af61e0a729b9c61d0 (patch)
tree362aefd1a9759731bdf8ee2cc3d533c83a7faa9a /decoders/i2cdemux/i2cdemux.py
parent385508e9b12d87519f9144a67e7682b46a592200 (diff)
downloadlibsigrokdecode-decde15ecb51b3326b31019af61e0a729b9c61d0.tar.gz
libsigrokdecode-decde15ecb51b3326b31019af61e0a729b9c61d0.zip
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).
Diffstat (limited to 'decoders/i2cdemux/i2cdemux.py')
-rw-r--r--decoders/i2cdemux/i2cdemux.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/i2cdemux/i2cdemux.py b/decoders/i2cdemux/i2cdemux.py
index ff597fe..4926160 100644
--- a/decoders/i2cdemux/i2cdemux.py
+++ b/decoders/i2cdemux/i2cdemux.py
@@ -38,6 +38,7 @@ class Decoder(srd.Decoder):
inputs = ['i2c']
outputs = [] # TODO: Only known at run-time.
probes = []
+ extra_probes = []
options = {}
annotations = []
@@ -87,4 +88,6 @@ class Decoder(srd.Decoder):
self.packets = []
self.stream = -1
+ else:
+ pass # Do nothing, only add the I2C packet to our cache.