summaryrefslogtreecommitdiff
path: root/decoders/ddc.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/ddc.py')
-rw-r--r--decoders/ddc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/ddc.py b/decoders/ddc.py
index b4681d0..a628565 100644
--- a/decoders/ddc.py
+++ b/decoders/ddc.py
@@ -24,10 +24,10 @@
# and a display device. The stream is output as plain bytes.
#
-import sigrokdecode
+import sigrokdecode as srd
-class Decoder(sigrokdecode.Decoder):
+class Decoder(srd.Decoder):
id = 'ddc'
name = 'DDC'
longname = 'Display Data Channel'
@@ -45,7 +45,7 @@ class Decoder(sigrokdecode.Decoder):
self.state = None
def start(self, metadata):
- self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'ddc')
+ self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'ddc')
def decode(self, start_sample, end_sample, i2c_data):
try: