diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-12 22:07:50 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-12 22:31:11 +0100 |
commit | 957da0732562da1011adb6da95614d67143a607c (patch) | |
tree | 99b62012b0b51765e4e9284fae15c16e70a2dc0d | |
parent | bf1c3f4db0ffbc05f29f81541c551c691ccd2ba7 (diff) | |
download | libsigrokdecode-957da0732562da1011adb6da95614d67143a607c.tar.gz libsigrokdecode-957da0732562da1011adb6da95614d67143a607c.zip |
srd: i2c: Drop unneeded %s usage.
-rw-r--r-- | decoders/i2c.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/decoders/i2c.py b/decoders/i2c.py index 15ef9c6..083fbb3 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -240,16 +240,10 @@ class Decoder(srd.Decoder): cmd = 'DATA_READ' self.put(self.out_proto, [cmd, d, ack_bit]) - self.put(self.out_ann, [ANN_SHIFTED, [ - '%s' % protocol[cmd][0], - '0x%02x' % d, - '%s' % protocol[ack_bit][0]] - ]) - self.put(self.out_ann, [ANN_SHIFTED_SHORT, [ - '%s' % protocol[cmd][1], - '0x%02x' % d, - '%s' % protocol[ack_bit][1]] - ]) + self.put(self.out_ann, [ANN_SHIFTED, + [protocol[cmd][0], '0x%02x' % d, protocol[ack_bit][0]]]) + self.put(self.out_ann, [ANN_SHIFTED_SHORT, + [protocol[cmd][1], '0x%02x' % d, protocol[ack_bit][1]]]) self.bitcount = self.databyte = 0 self.startsample = -1 |