From: Stefan BrĂ¼ns Date: Fri, 13 Nov 2015 03:20:54 +0000 (+0100) Subject: usb_signalling: remove unused ss_sop member X-Git-Tag: libsigrokdecode-0.4.0~30 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ce780be23a64df70ac350c8584d484e72c00990e;p=libsigrokdecode.git usb_signalling: remove unused ss_sop member --- diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 8e9723e..f45baf9 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -113,7 +113,6 @@ class Decoder(srd.Decoder): def __init__(self): self.samplerate = None self.oldsym = 'J' # The "idle" state is J. - self.ss_sop = None self.ss_block = None self.samplenum = 0 self.syms = [] @@ -171,8 +170,7 @@ class Decoder(srd.Decoder): self.oldsym = sym return self.consecutive_ones = 0 - self.ss_sop = self.samplenum - self.samplepos = self.ss_sop - (self.bitwidth / 2) + 0.5 + self.samplepos = self.samplenum - (self.bitwidth / 2) + 0.5 self.set_new_target_samplenum() self.putpx(['SOP', None]) self.putx([4, ['SOP', 'S']])