From 64b45b207121eeb9b0db7f71ba067f23fe7f7ea7 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 6 Oct 2015 08:28:03 +0200 Subject: usb_{signalling,packet}: Minor cosmetics. --- decoders/usb_signalling/pd.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'decoders/usb_signalling') diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 6b4c028..768a3b7 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -217,11 +217,10 @@ class Decoder(srd.Decoder): self.syms.append(sym) self.putpb(['SYM', sym]) b = '0' if self.oldsym != sym else '1' - if (self.oldsym != sym): - # edge + if self.oldsym != sym: edgesym = symbols[self.options['signalling']][tuple(self.edgepins)] - if (edgesym not in ('SE0', 'SE1')): - if (edgesym == sym): + if edgesym not in ('SE0', 'SE1'): + if edgesym == sym: self.bitwidth = self.bitwidth - (0.001 * self.bitwidth) self.samplepos = self.samplepos - (0.01 * self.bitwidth) else: -- cgit v1.2.3-70-g09d2