From: Uwe Hermann Date: Sat, 25 Jan 2014 08:55:19 +0000 (+0100) Subject: spi: Drop temporary hack for combined MISO/MOSI out. X-Git-Tag: libsigrokdecode-0.3.0~151 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c141101084198a7baecaae08509d8d2a03300c5c;p=libsigrokdecode.git spi: Drop temporary hack for combined MISO/MOSI out. --- 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