summaryrefslogtreecommitdiff
path: root/decoders/jtag
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
commit35b380b1156434b73d4a976c68f5ab3604c8510a (patch)
tree75a60785c37d242eee5886af138dba5ef0f177c1 /decoders/jtag
parent22fc7ace72f3165c98208a8f544156e04a709639 (diff)
downloadlibsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.tar.gz
libsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.zip
All PDs: Minor whitespace and consistency fixes.
- No newlines at the end of files. - No trailing ';' characters. - Comparison with None: Use 'is None' or 'is not None'. - Comparison with True/False: Use 'if cond:' or 'if not cond:'. - Various minor whitespace fixes.
Diffstat (limited to 'decoders/jtag')
-rw-r--r--decoders/jtag/__init__.py1
-rw-r--r--decoders/jtag/pd.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/decoders/jtag/__init__.py b/decoders/jtag/__init__.py
index 047e54a..0caf5aa 100644
--- a/decoders/jtag/__init__.py
+++ b/decoders/jtag/__init__.py
@@ -29,4 +29,3 @@ http://focus.ti.com/lit/an/ssya002c/ssya002c.pdf
'''
from .pd import *
-
diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py
index d7b35aa..49077ed 100644
--- a/decoders/jtag/pd.py
+++ b/decoders/jtag/pd.py
@@ -143,7 +143,7 @@ class Decoder(srd.Decoder):
# Rising TCK edges always advance the state machine.
self.advance_state_machine(tms)
- if self.first == True:
+ if self.first:
# Save the start sample and item for later (no output yet).
self.ss_item = self.samplenum
self.first = False
@@ -214,4 +214,3 @@ class Decoder(srd.Decoder):
self.handle_rising_tck_edge(tdi, tdo, tck, tms)
self.oldtck = tck
-