summaryrefslogtreecommitdiff
path: root/decoders/usb_signalling
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/usb_signalling')
-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']])