summaryrefslogtreecommitdiff
path: root/decoders/spi/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-01-25 09:55:19 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2014-01-28 22:46:05 +0100
commitc141101084198a7baecaae08509d8d2a03300c5c (patch)
tree5f2ac39aa4b7a2e6af2a961bfdabaa626f39abaf /decoders/spi/pd.py
parent4fd46107d35d7ed471e7ca0f4ad9823d1d88cc1b (diff)
downloadlibsigrokdecode-c141101084198a7baecaae08509d8d2a03300c5c.tar.gz
libsigrokdecode-c141101084198a7baecaae08509d8d2a03300c5c.zip
spi: Drop temporary hack for combined MISO/MOSI out.
Diffstat (limited to 'decoders/spi/pd.py')
-rw-r--r--decoders/spi/pd.py8
1 files 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