]> sigrok.org Git - libsigrokdecode.git/commitdiff
cjtag: Drop no longer needed _real variable name suffix.
authorUwe Hermann <redacted>
Wed, 8 Jan 2020 23:19:45 +0000 (00:19 +0100)
committerUwe Hermann <redacted>
Wed, 8 Jan 2020 23:21:23 +0000 (00:21 +0100)
decoders/cjtag/pd.py

index 2e7f493ce3c56850ad12a0783c50306f4d7f0742..3fb636aacba1488da2cd47a457126b483d682bc1 100644 (file)
@@ -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)