From c9b24fc3d2f8c84338f07239edc1d4850164ae0c Mon Sep 17 00:00:00 2001 From: Uwe Hermann <uwe@hermann-uwe.de> Date: Tue, 10 Jan 2012 02:11:50 +0100 Subject: srd: output_{protocol,annotation} -> out_{proto,ann}. --- decoders/spi.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'decoders/spi.py') diff --git a/decoders/spi.py b/decoders/spi.py index 8c62cde..1e4a7b4 100644 --- a/decoders/spi.py +++ b/decoders/spi.py @@ -42,12 +42,12 @@ class Decoder(sigrokdecode.Decoder): self.rxcount = 0 self.rxdata = 0 self.bytesreceived = 0 - self.output_protocol = None - self.output_annotation = None + self.out_proto = None + self.out_ann = None def start(self, metadata): - # self.output_protocol = self.add(2) - self.output_annotation = self.add(1) + # self.out_proto = self.add(2) + self.out_ann = self.add(1) def report(self): return 'SPI: %d bytes received' % self.bytesreceived @@ -81,8 +81,8 @@ class Decoder(sigrokdecode.Decoder): 'display':('%02X' % self.rxdata), 'type':'spi', } - # self.put(0, 0, self.output_protocol, out_proto) - self.put(0, 0, self.output_annotation, outdata) + # self.put(0, 0, self.out_proto, out_proto) + self.put(0, 0, self.out_ann, outdata) # Reset decoder state self.rxdata = 0 self.rxcount = 0 -- cgit v1.2.3-70-g09d2