]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_request: Drop hardcoded samplerate.
authorUwe Hermann <redacted>
Wed, 11 May 2016 16:55:13 +0000 (18:55 +0200)
committerUwe Hermann <redacted>
Wed, 11 May 2016 16:58:52 +0000 (18:58 +0200)
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

index 79539c6b9deea853caefccb2eac8ca0fe1631e98..a4e357739dc44e1c9399d4f7873c1439c00906ee 100644 (file)
@@ -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'