From 4045d68426fdc10ed3a0ac02d4bc353b37f1f252 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 11 May 2016 18:55:13 +0200 Subject: 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. --- decoders/usb_request/pd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoders/usb_request') 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' -- cgit v1.2.3-70-g09d2