From: Gerhard Sittig Date: Sun, 18 Jun 2017 17:32:57 +0000 (+0200) Subject: i2c: Don't drop the first sample of input data X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cbca32378d7b18a793057a7f6c4a7a19efa53376;p=libsigrokdecode.git i2c: Don't drop the first sample of input data The previous implementation of the I2C decoder used to retrieve and not process the first sample of the input stream. Remove this instruction. --- diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 0e7f769..d0c2ea7 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -253,8 +253,6 @@ class Decoder(srd.Decoder): if not self.samplerate: raise SamplerateError('Cannot decode without samplerate.') - self.wait({}) - while True: # State machine. if self.state == 'FIND START':