summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-04-24 22:00:02 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2019-04-24 22:02:16 +0200
commitce0fb9a37844cb2fcb8f7c569265c78ceb548162 (patch)
treebfbef01ccb180cb760836aef5007415548ef4d53
parent4275cee21e63a7467ac8aee573515fc7cab1114d (diff)
downloadlibsigrokdecode-ce0fb9a37844cb2fcb8f7c569265c78ceb548162.tar.gz
libsigrokdecode-ce0fb9a37844cb2fcb8f7c569265c78ceb548162.zip
spi: Fix annotation row ordering.
Use the same (more logical) order of having the "bits" annotation row being the first one, which is also what pretty much all other PDs do.
-rw-r--r--decoders/spi/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py
index 8d0d6ae..952b066 100644
--- a/decoders/spi/pd.py
+++ b/decoders/spi/pd.py
@@ -112,11 +112,11 @@ class Decoder(srd.Decoder):
('mosi-transfer', 'MOSI transfer'),
)
annotation_rows = (
- ('miso-data', 'MISO data', (0,)),
('miso-bits', 'MISO bits', (2,)),
+ ('miso-data', 'MISO data', (0,)),
('miso-transfer', 'MISO transfer', (5,)),
- ('mosi-data', 'MOSI data', (1,)),
('mosi-bits', 'MOSI bits', (3,)),
+ ('mosi-data', 'MOSI data', (1,)),
('mosi-transfer', 'MOSI transfer', (6,)),
('other', 'Other', (4,)),
)