summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2016-05-11 18:55:13 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-05-11 18:58:52 +0200
commit4045d68426fdc10ed3a0ac02d4bc353b37f1f252 (patch)
tree966c92454034aba33da23397001539b3925e0692 /decoders
parent937e4c51d509c386536141e6cd2d8cd933dcfb4a (diff)
downloadlibsigrokdecode-4045d68426fdc10ed3a0ac02d4bc353b37f1f252.tar.gz
libsigrokdecode-4045d68426fdc10ed3a0ac02d4bc353b37f1f252.zip
usb_request: Drop hardcoded samplerate.
The libsigrokdecode backend now passes metadata (e.g. samplerate) to all PDs, stacked and non-stacked (see bug #664), so this interim solution is no longer needed.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/usb_request/pd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py
index 79539c6..a4e3577 100644
--- a/decoders/usb_request/pd.py
+++ b/decoders/usb_request/pd.py
@@ -137,8 +137,7 @@ class Decoder(srd.Decoder):
)
def __init__(self):
- self.samplerate = 8e6 # None
- self.secs_per_sample = float(1) / float(self.samplerate)
+ self.samplerate = None
self.request = {}
self.request_id = 0
self.transaction_state = 'IDLE'