]> sigrok.org Git - libsigrokdecode.git/commitdiff
sdcard_sd: really show result of SET_BLOCKLEN
authorWolfram Sang <redacted>
Wed, 26 Apr 2017 15:17:32 +0000 (17:17 +0200)
committerUwe Hermann <redacted>
Tue, 2 May 2017 18:13:28 +0000 (20:13 +0200)
Now that self.arg is populated, we can finally use it.

Signed-off-by: Wolfram Sang <redacted>
decoders/sdcard_sd/pd.py

index 1ad9cb6eda92ec260de4e585349b58c4450954d8..835a544b47839e25e599d6ddd7c7af0fa9507e32 100644 (file)
@@ -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):