]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2cdemux/i2cdemux.py
srd: Add usable one-liner descriptions for all PDs.
[libsigrokdecode.git] / decoders / i2cdemux / i2cdemux.py
index c4c0d3b09fe68150415aa744eda3f24adf640fc7..bb47f230a66f0ec834a7381fb87ee4baaf3a5d81 100644 (file)
@@ -26,9 +26,8 @@ class Decoder(srd.Decoder):
     api_version = 1
     id = 'i2cdemux'
     name = 'I2C demux'
-    longname = 'Generic I2C demultiplexer'
-    desc = 'TODO.'
-    longdesc = 'TODO.'
+    longname = 'I2C demultiplexer'
+    desc = 'Demux I2C packets into per-slave-address streams.'
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = [] # TODO: Only known at run-time.
@@ -57,7 +56,7 @@ class Decoder(srd.Decoder):
     # get the whole chunk of packets (from START to STOP).
     def decode(self, ss, es, data):
 
-        cmd, databyte, ack = data
+        cmd, databyte = data
 
         # Add the I2C packet to our local cache.
         self.packets.append([ss, es, data])