diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-08 22:50:16 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-09 00:15:02 +0100 |
commit | d315969c893bb62dca66433877765a5092e7c33d (patch) | |
tree | 03587c4865f97194bcec6cfe85e2470b633de55a /decoders | |
parent | 38b7a4823866fc51768c1236bed1d646a641e44d (diff) | |
download | libsigrokdecode-d315969c893bb62dca66433877765a5092e7c33d.tar.gz libsigrokdecode-d315969c893bb62dca66433877765a5092e7c33d.zip |
cjtag: Use += operator where possible.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/cjtag/pd.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |