]> sigrok.org Git - libsigrokdecode.git/commitdiff
enc28j60: Rename self.ann to self.out_ann.
authorUwe Hermann <redacted>
Tue, 14 May 2019 23:28:53 +0000 (01:28 +0200)
committerUwe Hermann <redacted>
Tue, 14 May 2019 23:28:53 +0000 (01:28 +0200)
(for consistency with all other decoders)

decoders/enc28j60/pd.py

index fafc2cd169c6f5b0d1b190513cbcaf953ecfcc2d..f7a6625a22c7b58602895dbe44cf1130d7ae5126 100644 (file)
@@ -89,13 +89,13 @@ class Decoder(srd.Decoder):
         self.bsel1 = None
 
     def start(self):
-        self.ann = self.register(srd.OUTPUT_ANN)
+        self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def putc(self, data):
-        self.put(self.cmd_ss, self.cmd_es, self.ann, data)
+        self.put(self.cmd_ss, self.cmd_es, self.out_ann, data)
 
     def putr(self, data):
-        self.put(self.range_ss, self.range_es, self.ann, data)
+        self.put(self.range_ss, self.range_es, self.out_ann, data)
 
     def _process_command(self):
         if len(self.mosi) == 0: