]> sigrok.org Git - libsigrokdecode.git/commitdiff
sdcard_spi: Fix incorrect R1 reply annotation endsample.
authorUwe Hermann <redacted>
Mon, 3 Feb 2014 00:39:40 +0000 (01:39 +0100)
committerUwe Hermann <redacted>
Sun, 9 Feb 2014 18:38:21 +0000 (19:38 +0100)
decoders/sdcard_spi/pd.py

index ea1a3d72fb09862023ea2c7462b8c294c6b26429..b2312f86ee7de9ff08cb53c4d79439b4f64e2efb 100644 (file)
@@ -333,7 +333,7 @@ class Decoder(srd.Decoder):
         # The R1 response token format (1 byte).
         # Sent by the card after every command except for SEND_STATUS.
 
-        self.cmd_ss, self.cmd_es = self.ss, self.es
+        self.cmd_ss, self.cmd_es = self.miso_bits[0][1], self.miso_bits[7][2]
         self.putx([65, ['R1: 0x%02x' % res]])
 
         def putbit(bit, data):