From 67e847fd2185aa5677954dceacf3c279d7a68af1 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 1 Dec 2011 23:09:40 +1300 Subject: srd: PDs now explicitly register with sigrok module. --- decoders/i2c.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoders/i2c.py') diff --git a/decoders/i2c.py b/decoders/i2c.py index 93cf167..16e7491 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -143,6 +143,7 @@ def sampleiter(data, unitsize): yield(Sample(data[i:i+unitsize])) class Decoder(): + id = 'i2c' name = 'I2C' longname = 'Inter-Integrated Circuit (I2C) bus' desc = 'I2C is a two-wire, multi-master, serial bus.' @@ -351,3 +352,5 @@ class Decoder(): import sigrok +sigrok.register(Decoder) + -- cgit v1.2.3-70-g09d2