]> sigrok.org Git - libsigrokdecode.git/commitdiff
sdcard_sd: Replace a hardcoded number for better readability.
authorUwe Hermann <redacted>
Fri, 10 Jan 2020 23:49:20 +0000 (00:49 +0100)
committerUwe Hermann <redacted>
Sat, 11 Jan 2020 00:22:22 +0000 (01:22 +0100)
decoders/sdcard_sd/pd.py

index 73c72629bd4b62ce83c35f44112a9b6e2d5dbe18..801e084d86b9d055fd8f74a42c09139201d12b06 100644 (file)
@@ -108,7 +108,7 @@ class Decoder(srd.Decoder):
                  self.out_ann, data)
 
     def putc(self, desc):
-        cmd = self.cmd + 64 if self.is_acmd else self.cmd
+        cmd = Ann.ACMD0 + self.cmd if self.is_acmd else self.cmd
         self.last_cmd = cmd
         self.putt([cmd, ['%s: %s' % (self.cmd_str, desc), self.cmd_str,
                          self.cmd_str.split(' ')[0]]])