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/srd_usb.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoders/srd_usb.py') diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py index 128b337..07fc732 100644 --- a/decoders/srd_usb.py +++ b/decoders/srd_usb.py @@ -111,6 +111,7 @@ def packet_decode(packet): return pid + ' ' + data class Decoder(): + id = 'usb' name = 'USB' desc = 'Universal Serial Bus' longname = '...longname...' @@ -184,3 +185,5 @@ class Decoder(): self.scount = 0 self.sym = sym +sigrok.register(Decoder) + -- cgit v1.2.3-70-g09d2