]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_signalling: remove unused ss_sop member
authorStefan Brüns <redacted>
Fri, 13 Nov 2015 03:20:54 +0000 (04:20 +0100)
committerStefan Brüns <redacted>
Sun, 29 Nov 2015 23:03:01 +0000 (00:03 +0100)
decoders/usb_signalling/pd.py

index 8e9723e6f6932e584988446cbbd099af7dff4af5..f45baf9f3cfc3ca4b49a86d02a82eb048ccd46c5 100644 (file)
@@ -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']])