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/spi.py | |
parent | e97b6ef569f73e387b2597dfa144c01838c0e27c (diff) | |
download | libsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.tar.gz libsigrokdecode-677d597b072c0a1d2df81c5c193cd3678aef8d03.zip |
srd: Use 'import sigrokdecode as srd' for brevity.
Diffstat (limited to 'decoders/spi.py')
-rw-r--r-- | decoders/spi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/spi.py b/decoders/spi.py index a866767..5529025 100644 --- a/decoders/spi.py +++ b/decoders/spi.py @@ -18,9 +18,9 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -import sigrokdecode +import sigrokdecode as srd -class Decoder(sigrokdecode.Decoder): +class Decoder(srd.Decoder): id = 'spi' name = 'SPI' desc = '...desc...' @@ -46,8 +46,8 @@ class Decoder(sigrokdecode.Decoder): self.out_ann = None def start(self, metadata): - # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTO, 'spi') - self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'spi') + # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'spi') + self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'spi') def report(self): return 'SPI: %d bytes received' % self.bytesreceived |