diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-06 01:26:22 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-06 01:26:22 +0200 |
commit | d08f387b1fb93855f6e56376716fe547b8f51452 (patch) | |
tree | a8f96f645eca60a5b091a0bc53bb9f3449cc796d /decoders/swim/pd.py | |
parent | f8cc803b1fa51036be16115bff809cdacecaffd5 (diff) | |
download | libsigrokdecode-d08f387b1fb93855f6e56376716fe547b8f51452.tar.gz libsigrokdecode-d08f387b1fb93855f6e56376716fe547b8f51452.zip |
swim: Simplify a code snippet.
Diffstat (limited to 'decoders/swim/pd.py')
-rw-r--r-- | decoders/swim/pd.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/swim/pd.py b/decoders/swim/pd.py index 462779b..452805a 100644 --- a/decoders/swim/pd.py +++ b/decoders/swim/pd.py @@ -123,10 +123,7 @@ class Decoder(srd.Decoder): self.sync_reflen_min = math.floor(self.samplerate * 64 / self.HSI_max) self.sync_reflen_max = math.ceil(self.samplerate * 128 / (self.HSI_min / 2)) - if self.options['debug'] == 'yes': - self.debug = True - else: - self.debug = False + self.debug = True if self.options['debug'] == 'yes' else False # The SWIM entry sequence is 4 pulses at 2kHz followed by 4 at 1kHz. self.eseq_reflen = math.ceil(self.samplerate / 2048) |