]> sigrok.org Git - libsigrokdecode.git/commitdiff
cjtag: Use += operator where possible.
authorUwe Hermann <redacted>
Wed, 8 Jan 2020 21:50:16 +0000 (22:50 +0100)
committerUwe Hermann <redacted>
Wed, 8 Jan 2020 23:15:02 +0000 (00:15 +0100)
decoders/cjtag/pd.py

index dbce7909d24be1bef790591f25e7911436b36555..9849b3ab46b6f45b63199bd78c9813d0dbb079e3 100644 (file)
@@ -138,7 +138,7 @@ class Decoder(srd.Decoder):
         self.oldstate = self.state
 
         if self.cjtagstate.startswith('CJTAG-'):
-            self.oacp = self.oacp + 1
+            self.oacp += 1
             if self.oacp > 4 and self.oaclen == 12:
                 self.cjtagstate = 'CJTAG-EC'
 
@@ -281,7 +281,7 @@ class Decoder(srd.Decoder):
         self.ss_item = self.samplenum
 
     def handle_tms_edge(self, tck, tms):
-        self.escape_edges = self.escape_edges + 1
+        self.escape_edges += 1
 
     def handle_tapc_state(self, tck, tms):
         self.oldcjtagstate = self.cjtagstate