diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-31 17:04:50 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-31 17:04:50 +0200 |
commit | 4180cba9a51acd32f69f0f8628bb746ea3e12be6 (patch) | |
tree | 28c2e970361961ee0386ab61224e983a0dd5b6c6 /decoders/i2c | |
parent | 394b74dca66d540cae154dfeb3bea4253db4304d (diff) | |
download | libsigrokdecode-4180cba9a51acd32f69f0f8628bb746ea3e12be6.tar.gz libsigrokdecode-4180cba9a51acd32f69f0f8628bb746ea3e12be6.zip |
srd: Decoders: Fix/simplify samplenum usage.
Diffstat (limited to 'decoders/i2c')
-rw-r--r-- | decoders/i2c/i2c.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/i2c/i2c.py b/decoders/i2c/i2c.py index cc70e96..5f67d35 100644 --- a/decoders/i2c/i2c.py +++ b/decoders/i2c/i2c.py @@ -198,8 +198,7 @@ class Decoder(srd.Decoder): super(Decoder, self).put(self.startsample, self.samplenum, output_id, data) def decode(self, ss, es, data): - for samplenum, (scl, sda) in data: - self.samplenum = samplenum + for (self.samplenum, (scl, sda)) in data: # First sample: Save SCL/SDA value. if self.oldscl == None: |