summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-07-20 23:16:46 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2020-07-20 23:19:03 +0200
commit51194ffccbd674d9b226d47858f80750a8b6d8ef (patch)
tree99825952bcbe6ae7b50b0cb07334cfcf5a2bb211 /decoders
parent028589e66b614059224939e4fbc18ed35b2ae64b (diff)
downloadlibsigrokdecode-51194ffccbd674d9b226d47858f80750a8b6d8ef.tar.gz
libsigrokdecode-51194ffccbd674d9b226d47858f80750a8b6d8ef.zip
spdif: Drop unneeded braces.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/spdif/pd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/spdif/pd.py b/decoders/spdif/pd.py
index fa90cb9..65d1903 100644
--- a/decoders/spdif/pd.py
+++ b/decoders/spdif/pd.py
@@ -107,17 +107,17 @@ class Decoder(srd.Decoder):
if self.pulse_width != 0:
self.clocks.append(self.pulse_width)
self.state = 'GET SECOND PULSE WIDTH'
- self.puty([2, ['Found width 1: %d' % (self.pulse_width), 'W1: %d' % (self.pulse_width)]])
+ self.puty([2, ['Found width 1: %d' % self.pulse_width, 'W1: %d' % self.pulse_width]])
self.ss_edge = self.samplenum
def find_second_pulse_width(self):
if self.pulse_width > (self.clocks[0] * 1.3) or \
self.pulse_width <= (self.clocks[0] * 0.75):
- self.puty([2, ['Found width 2: %d' % (self.pulse_width), 'W2: %d' % (self.pulse_width)]])
+ self.puty([2, ['Found width 2: %d' % self.pulse_width, 'W2: %d' % self.pulse_width]])
self.clocks.append(self.pulse_width)
self.state = 'GET THIRD PULSE WIDTH'
else:
- self.puty([2, ['Search width 2: %d' % (self.pulse_width), 'SW2: %d' % (self.pulse_width)]])
+ self.puty([2, ['Search width 2: %d' % self.pulse_width, 'SW2: %d' % self.pulse_width]])
self.ss_edge = self.samplenum
def find_third_pulse_width(self):
@@ -125,11 +125,11 @@ class Decoder(srd.Decoder):
self.pulse_width <= (self.clocks[0] * 0.75)) \
and (self.pulse_width > (self.clocks[1] * 1.3) or \
self.pulse_width <= (self.clocks[1] * 0.75))):
- self.puty([2, ['Search width 3: %d' % (self.pulse_width), 'SW3: %d' % (self.pulse_width)]])
+ self.puty([2, ['Search width 3: %d' % self.pulse_width, 'SW3: %d' % self.pulse_width]])
self.ss_edge = self.samplenum
return
else:
- self.puty([2, ['Found width 3: %d' % (self.pulse_width), 'W3: %d' % (self.pulse_width)]])
+ self.puty([2, ['Found width 3: %d' % self.pulse_width, 'W3: %d' % self.pulse_width]])
self.ss_edge = self.samplenum
# The message of the calculated bitrate should start at this sample
# (right after the synchronisation).