projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a74855d
)
sdcard_spi: Fix incorrect 'Command index' value access.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Mon, 3 Feb 2014 00:25:16 +0000
(
01:25
+0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sun, 9 Feb 2014 18:38:20 +0000
(19:38 +0100)
decoders/sdcard_spi/pd.py
patch
|
blob
|
history
diff --git
a/decoders/sdcard_spi/pd.py
b/decoders/sdcard_spi/pd.py
index 5cdea4cfc6bd03b8ed9ecf1d37b7f3b7a2e05deb..ea1a3d72fb09862023ea2c7462b8c294c6b26429 100644
(file)
--- a/
decoders/sdcard_spi/pd.py
+++ b/
decoders/sdcard_spi/pd.py
@@
-176,7
+176,7
@@
class Decoder(srd.Decoder):
self.putb([1, ['Warning: Transmitter bit != 1']])
# Bits[45:40]: Command index (BCD; valid: 0-63)
- cmd = self.cmd_index = t[
5
] & 0x3f
+ cmd = self.cmd_index = t[
0
] & 0x3f
# TODO
self.bit_ss, self.bit_es = tb(5, 5)[1], tb(5, 0)[2]
self.putb([70, ['Command: %s%d (%s)' % (s, cmd, cmd_name[cmd])]])