summaryrefslogtreecommitdiff
path: root/decoders/ebr30a_i2c_demux
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-02-01 23:14:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-02-01 23:18:25 +0100
commit7f7ea759ebdc854beb0468b410f7d2382f291a4f (patch)
tree079e608f706706609d7fb95b81c485cc548a8396 /decoders/ebr30a_i2c_demux
parent156509ca42f0df2380c9f205f9aad337e1a07802 (diff)
downloadlibsigrokdecode-7f7ea759ebdc854beb0468b410f7d2382f291a4f.tar.gz
libsigrokdecode-7f7ea759ebdc854beb0468b410f7d2382f291a4f.zip
srd: Properly use append() for appending to lists.
This is not only the canonical way to do it, it's also quite a bit faster and less memory-intensive than using '+='.
Diffstat (limited to 'decoders/ebr30a_i2c_demux')
-rw-r--r--decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
index 1a52fb8..50a1dbe 100644
--- a/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
+++ b/decoders/ebr30a_i2c_demux/ebr30a_i2c_demux.py
@@ -67,7 +67,7 @@ class Decoder(srd.Decoder):
cmd, databyte, ack_bit = data
# Add the I2C packet to our local cache.
- self.packets += [[ss, es, data]]
+ self.packets.append([ss, es, data])
if cmd in ('ADDRESS READ', 'ADDRESS WRITE'):
# print(hex(databyte))