summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2015-11-13 04:20:54 +0100
committerStefan Brüns <stefan.bruens@rwth-aachen.de>2015-11-30 00:03:01 +0100
commitce780be23a64df70ac350c8584d484e72c00990e (patch)
tree604596df9f1daaead2b36803e4d84a0a041b64b9 /decoders
parent033d6221f3d0cd607bb11031a2764a293bf4bff1 (diff)
downloadlibsigrokdecode-ce780be23a64df70ac350c8584d484e72c00990e.tar.gz
libsigrokdecode-ce780be23a64df70ac350c8584d484e72c00990e.zip
usb_signalling: remove unused ss_sop member
Diffstat (limited to 'decoders')
-rw-r--r--decoders/usb_signalling/pd.py4
1 files changed, 1 insertions, 3 deletions
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']])