From 1b9ef18be867133e721681cbc20272cf5c669504 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 18 Jun 2017 19:27:47 +0200 Subject: decoders: Rephrase condition-less .wait() calls (self documentation) Telling .wait() to "skip one sample" slightly obfuscates the intent of getting the next samples while no condition applies. Explicitly pass no condition arguments instead, to better reflect the purpose. Coincidently these .wait() calls will execute in slightly less expensive code paths in the common code. --- decoders/qi/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/qi') diff --git a/decoders/qi/pd.py b/decoders/qi/pd.py index 0c880dd..779cafa 100644 --- a/decoders/qi/pd.py +++ b/decoders/qi/pd.py @@ -232,7 +232,7 @@ class Decoder(srd.Decoder): if not self.samplerate: raise SamplerateError('Cannot decode without samplerate.') - (qi,) = self.wait({'skip': 1}) + (qi,) = self.wait() self.handle_transition(self.samplenum, qi == 0) while True: prev = self.samplenum -- cgit v1.2.3-70-g09d2