diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2017-04-26 17:17:32 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-05-02 20:13:28 +0200 |
commit | d507f5e445906d8e90f643b18dc23c455f8569a8 (patch) | |
tree | fb16ae6cbd61f1eae1e09371a5666e339d0c85dc /decoders | |
parent | 619ed6b4ef103f1dc0d4a03b68447a44cd2f12d6 (diff) | |
download | libsigrokdecode-d507f5e445906d8e90f643b18dc23c455f8569a8.tar.gz libsigrokdecode-d507f5e445906d8e90f643b18dc23c455f8569a8.zip |
sdcard_sd: really show result of SET_BLOCKLEN
Now that self.arg is populated, we can finally use it.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/sdcard_sd/pd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/sdcard_sd/pd.py b/decoders/sdcard_sd/pd.py index 1ad9cb6..835a544 100644 --- a/decoders/sdcard_sd/pd.py +++ b/decoders/sdcard_sd/pd.py @@ -231,9 +231,8 @@ class Decoder(srd.Decoder): def handle_cmd16(self): # CMD16 (SET_BLOCKLEN) -> R1 - self.blocklen = self.arg self.puta(0, 31, [136, ['Block length', 'Blocklen', 'BL', 'B']]) - self.putc(16, 'Set the block length to %d bytes' % self.blocklen) + self.putc(16, 'Set the block length to %d bytes' % self.arg) self.token, self.state = [], 'GET RESPONSE R1' def handle_cmd55(self): |