]> sigrok.org Git - libsigrokdecode.git/commitdiff
i2c: Don't drop the first sample of input data
authorGerhard Sittig <redacted>
Sun, 18 Jun 2017 17:32:57 +0000 (19:32 +0200)
committerUwe Hermann <redacted>
Wed, 21 Jun 2017 15:45:15 +0000 (17:45 +0200)
The previous implementation of the I2C decoder used to retrieve and not
process the first sample of the input stream. Remove this instruction.

decoders/i2c/pd.py

index 0e7f769e16f16eda276de9809f01fe43106b3983..d0c2ea71702d20ac247a37739173047cfdce8588 100644 (file)
@@ -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':