X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fswim%2Fpd.py;h=452805a0377988fff28cf8a668f1f27b062ce0e9;hb=49d3e6f83c68e62138621f94bf5e22c9d7717fca;hp=462779bb103503784d43d653eb1f6f6d592b8d1d;hpb=f8cc803b1fa51036be16115bff809cdacecaffd5;p=libsigrokdecode.git 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)