summaryrefslogtreecommitdiff
path: root/decoders/spi.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/spi.py')
-rw-r--r--decoders/spi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/spi.py b/decoders/spi.py
index 1e4a7b4..95302ce 100644
--- a/decoders/spi.py
+++ b/decoders/spi.py
@@ -46,8 +46,8 @@ class Decoder(sigrokdecode.Decoder):
self.out_ann = None
def start(self, metadata):
- # self.out_proto = self.add(2)
- self.out_ann = self.add(1)
+ # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'spi')
+ self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'spi')
def report(self):
return 'SPI: %d bytes received' % self.bytesreceived