]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2c/pd.py
i2c: Don't drop the first sample of input data
[libsigrokdecode.git] / decoders / i2c / pd.py
index d2f8bc454fed3c00341fb986de57c7defdee2e3d..d0c2ea71702d20ac247a37739173047cfdce8588 100644 (file)
@@ -130,10 +130,6 @@ class Decoder(srd.Decoder):
         self.out_bitrate = self.register(srd.OUTPUT_META,
                 meta=(int, 'Bitrate', 'Bitrate from Start bit to Stop bit'))
 
-        # Assume that the initial SCL/SDA pin state is high (logic 1).
-        # This is a good default, since both pins have pullups as per spec.
-        self.initial_pins = [1, 1]
-
     def putx(self, data):
         self.put(self.ss, self.es, self.out_ann, data)
 
@@ -257,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':