]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2cdemux/i2cdemux.py
srd: Move all protocol docs to __init__.py files.
[libsigrokdecode.git] / decoders / i2cdemux / i2cdemux.py
index ff597fe6d5e9d71b1fee93d08ec1eb58ccfcd776..a597188fc95b695e3ff8c4de76cdac6723a9c48c 100644 (file)
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-#
 # Generic I2C demultiplexing protocol decoder
-#
-# Takes an I2C stream as input and outputs multiple I2C streams, each stream
-# containing only I2C packets for one specific I2C slave.
-#
 
 import sigrokdecode as srd
 
@@ -38,6 +33,7 @@ class Decoder(srd.Decoder):
     inputs = ['i2c']
     outputs = [] # TODO: Only known at run-time.
     probes = []
+    optional_probes = []
     options = {}
     annotations = []
 
@@ -87,4 +83,6 @@ class Decoder(srd.Decoder):
 
             self.packets = []
             self.stream = -1
+        else:
+            pass # Do nothing, only add the I2C packet to our cache.