summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-rw-r--r--decoders/i2c.py14
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