From: Uwe Hermann Date: Wed, 11 May 2016 16:55:13 +0000 (+0200) Subject: usb_request: Drop hardcoded samplerate. X-Git-Tag: libsigrokdecode-0.5.0~169 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4045d68426fdc10ed3a0ac02d4bc353b37f1f252;p=libsigrokdecode.git 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. --- 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'