X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Febr30a_i2c_demux%2Febr30a_i2c_demux.py;h=59649fd529e51fcffecacdc10bf2adb5122272d5;hb=7a1712c4fd07f64222079acd5ec3fa3348a5cb15;hp=353fea8256894fdeded0020702f8de88dab89747;hpb=64c29e28e0efa184319f7831b3eca18c7f73f7d0;p=libsigrokdecode.git diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py index 353fea8..59649fd 100644 --- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py +++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py @@ -40,6 +40,7 @@ H8563S = 1 ACCEL = 2 class Decoder(srd.Decoder): + api_version = 1 id = 'ebr30a_i2c_demux' name = 'EBR30-a I2C demux' longname = 'TrekStor EBR30-a I2C demux' @@ -47,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 = [] @@ -101,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.