diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-10 21:10:23 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-10 21:10:23 +0100 |
commit | 677d597b072c0a1d2df81c5c193cd3678aef8d03 (patch) | |
tree | cdb4f1faab0a22bd0c207d5ba97ea63f40f3fbc4 /decoders/ddc.py | |
parent | e97b6ef569f73e387b2597dfa144c01838c0e27c (diff) | |
download | libsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.tar.gz libsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.zip |
srd: Use 'import sigrokdecode as srd' for brevity.
Diffstat (limited to 'decoders/ddc.py')
-rw-r--r-- | decoders/ddc.py | 6 |
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: |