diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2019-04-24 22:00:02 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-04-24 22:02:16 +0200 |
commit | ce0fb9a37844cb2fcb8f7c569265c78ceb548162 (patch) | |
tree | bfbef01ccb180cb760836aef5007415548ef4d53 /decoders | |
parent | 4275cee21e63a7467ac8aee573515fc7cab1114d (diff) | |
download | libsigrokdecode-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.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/spi/pd.py | 4 |
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,)), ) |