diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-03 01:25:16 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-09 19:38:20 +0100 |
commit | 49176fecb4ab0c7a2474d50ff98a6f105c2a638f (patch) | |
tree | 130756cc9c6550dc78038faa16458ff32e0739fc | |
parent | a74855de187198624fefd2c12ef8355e5a869f80 (diff) | |
download | libsigrokdecode-49176fecb4ab0c7a2474d50ff98a6f105c2a638f.tar.gz libsigrokdecode-49176fecb4ab0c7a2474d50ff98a6f105c2a638f.zip |
sdcard_spi: Fix incorrect 'Command index' value access.
-rw-r--r-- | decoders/sdcard_spi/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index 5cdea4c..ea1a3d7 100644 --- 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])]]) |