diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-09 00:19:45 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-09 00:21:23 +0100 |
commit | 1742244d6393b1d8fba0119eb48464e16a8b9a97 (patch) | |
tree | 34ae658655ef3d0aec5891641b8d4c4733f354ec /decoders | |
parent | 242438c32bfab01ae65ccc3678f5b9702a0678bb (diff) | |
download | libsigrokdecode-1742244d6393b1d8fba0119eb48464e16a8b9a97.tar.gz libsigrokdecode-1742244d6393b1d8fba0119eb48464e16a8b9a97.zip |
cjtag: Drop no longer needed _real variable name suffix.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/cjtag/pd.py | 12 |
1 files changed, 5 insertions, 7 deletions
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) |