From: Uwe Hermann Date: Wed, 8 Jan 2020 23:19:45 +0000 (+0100) Subject: cjtag: Drop no longer needed _real variable name suffix. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1742244d6393b1d8fba0119eb48464e16a8b9a97;p=libsigrokdecode.git cjtag: Drop no longer needed _real variable name suffix. --- diff --git a/decoders/cjtag/pd.py b/decoders/cjtag/pd.py index 2e7f493..3fb636a 100644 --- a/decoders/cjtag/pd.py +++ b/decoders/cjtag/pd.py @@ -298,9 +298,7 @@ class Decoder(srd.Decoder): self.escape_edges = 0 def decode(self): - tdi_real = 0 - tms_real = 0 - tdo_real = 0 + tdi = tms = tdo = 0 while True: # Wait for a rising edge on TCKC. @@ -309,14 +307,14 @@ class Decoder(srd.Decoder): if self.cjtagstate == 'OSCAN1': if self.oscan1cycle == 0: # nTDI - tdi_real = 1 if (tmsc == 0) else 0 + tdi = 1 if (tmsc == 0) else 0 self.oscan1cycle = 1 elif self.oscan1cycle == 1: # TMS - tms_real = tmsc + tms = tmsc self.oscan1cycle = 2 elif self.oscan1cycle == 2: # TDO - tdo_real = tmsc - self.handle_rising_tckc_edge(tdi_real, tdo_real, tckc, tms_real) + tdo = tmsc + self.handle_rising_tckc_edge(tdi, tdo, tckc, tms) self.oscan1cycle = 0 else: self.handle_rising_tckc_edge(None, None, tckc, tmsc)