From 677d597b072c0a1d2df81c5c193cd3678aef8d03 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 10 Jan 2012 21:10:23 +0100 Subject: srd: Use 'import sigrokdecode as srd' for brevity. --- decoders/spi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'decoders/spi.py') 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 -- cgit v1.2.3-70-g09d2