From c141101084198a7baecaae08509d8d2a03300c5c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 25 Jan 2014 09:55:19 +0100 Subject: spi: Drop temporary hack for combined MISO/MOSI out. --- decoders/spi/pd.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index 4939163..303387e 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -79,7 +79,6 @@ class Decoder(srd.Decoder): 'format': ['Data format', 'hex'], } annotations = [ - ['miso-mosi-data', 'MISO/MOSI SPI data'], ['miso-data', 'MISO SPI data'], ['mosi-data', 'MOSI SPI data'], ['warnings', 'Human-readable warnings'], @@ -148,9 +147,8 @@ class Decoder(srd.Decoder): self.putpw(['DATA', self.mosidata, self.misodata]) # Annotations - self.putw([0, ['%02X/%02X' % (self.mosidata, self.misodata)]]) - self.putw([1, ['%02X' % self.misodata]]) - self.putw([2, ['%02X' % self.mosidata]]) + self.putw([0, ['%02X' % self.misodata]]) + self.putw([1, ['%02X' % self.mosidata]]) # Meta bitrate elapsed = 1 / float(self.samplerate) * (self.samplenum - self.startsample + 1) @@ -158,7 +156,7 @@ class Decoder(srd.Decoder): self.put(self.startsample, self.samplenum, self.out_bitrate, bitrate) if self.cs_was_deasserted_during_data_word: - self.putw([3, ['CS# was deasserted during this data word!']]) + self.putw([2, ['CS# was deasserted during this data word!']]) # Reset decoder state. self.mosidata = self.misodata = self.bitcount = 0 -- cgit v1.2.3-70-g09d2