summaryrefslogtreecommitdiff
path: root/decoders/cjtag/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/cjtag/pd.py')
-rw-r--r--decoders/cjtag/pd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/cjtag/pd.py b/decoders/cjtag/pd.py
index 9849b3a..885ecec 100644
--- a/decoders/cjtag/pd.py
+++ b/decoders/cjtag/pd.py
@@ -307,10 +307,7 @@ class Decoder(srd.Decoder):
if self.cjtagstate == 'OSCAN1':
if self.oscan1cycle == 0: # nTDI
- if tms == 0:
- tdi_real = 1
- else:
- tdi_real = 0
+ tdi_real = 1 if (tms == 0) else 0
self.oscan1cycle = 1
elif self.oscan1cycle == 1: # TMS
tms_real = tms