From: Uwe Hermann Date: Wed, 8 Jan 2020 21:52:53 +0000 (+0100) Subject: cjtag: Use ternary operator where possible. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7aab31bb8a46aeaded3ba682cc3ebfc22a70dbcd;p=libsigrokdecode.git cjtag: Use ternary operator where possible. --- 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