From: Uwe Hermann Date: Wed, 8 Jan 2020 21:50:16 +0000 (+0100) Subject: cjtag: Use += operator where possible. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d315969c893bb62dca66433877765a5092e7c33d;p=libsigrokdecode.git cjtag: Use += operator where possible. --- diff --git a/decoders/cjtag/pd.py b/decoders/cjtag/pd.py index dbce790..9849b3a 100644 --- a/decoders/cjtag/pd.py +++ b/decoders/cjtag/pd.py @@ -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