From 2824e81140d3a8e37464f758cf67f50f2f7afca7 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 23 Dec 2015 20:00:45 +0100 Subject: Use a Python list (not tuple) for OUT_BINARY. This is more consistent with annotation syntax and looks slightly better in most cases. --- decoders/i2s/pd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders/i2s/pd.py') diff --git a/decoders/i2s/pd.py b/decoders/i2s/pd.py index ee642d7..eeeea20 100644 --- a/decoders/i2s/pd.py +++ b/decoders/i2s/pd.py @@ -154,7 +154,7 @@ class Decoder(srd.Decoder): if self.ss_block is not None: if not self.wrote_wav_header: - self.put(0, 0, self.out_bin, (0, self.wav_header())) + self.put(0, 0, self.out_bin, [0, self.wav_header()]) self.wrote_wav_header = True self.samplesreceived += 1 @@ -167,7 +167,7 @@ class Decoder(srd.Decoder): self.putpb(['DATA', [c3, self.data]]) self.putb([idx, ['%s: %s' % (c1, v), '%s: %s' % (c2, v), '%s: %s' % (c3, v), c3]]) - self.putbin((0, self.wav_sample(self.data))) + self.putbin([0, self.wav_sample(self.data)]) # Check that the data word was the correct length. if self.wordlength != -1 and self.wordlength != self.bitcount: -- cgit v1.2.3-70-g09d2