From d315969c893bb62dca66433877765a5092e7c33d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 8 Jan 2020 22:50:16 +0100 Subject: cjtag: Use += operator where possible. --- decoders/cjtag/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/cjtag/pd.py') 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 -- cgit v1.2.3-70-g09d2