summaryrefslogtreecommitdiff
path: root/decoders/lpc/pd.py
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/lpc/pd.py
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/lpc/pd.py')
-rw-r--r--decoders/lpc/pd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py
index b626e0d..5e25db4 100644
--- a/decoders/lpc/pd.py
+++ b/decoders/lpc/pd.py
@@ -346,7 +346,7 @@ class Decoder(srd.Decoder):
if self.state == 'IDLE':
# A valid LPC cycle starts with LFRAME# being asserted (low).
if lframe != 0:
- continue
+ continue
self.ss_block = self.samplenum
self.state = 'GET START'
self.lad = -1
@@ -365,4 +365,3 @@ class Decoder(srd.Decoder):
self.handle_get_data(lad, lad_bits)
elif self.state == 'GET TAR2':
self.handle_get_tar2(lad, lad_bits)
-