From: Uwe Hermann Date: Wed, 24 Apr 2019 20:00:02 +0000 (+0200) Subject: spi: Fix annotation row ordering. X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=ce0fb9a37844cb2fcb8f7c569265c78ceb548162 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. --- 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,)), )