From d507f5e445906d8e90f643b18dc23c455f8569a8 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Wed, 26 Apr 2017 17:17:32 +0200 Subject: sdcard_sd: really show result of SET_BLOCKLEN Now that self.arg is populated, we can finally use it. Signed-off-by: Wolfram Sang --- decoders/sdcard_sd/pd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoders/sdcard_sd') 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): -- cgit v1.2.3-70-g09d2