From: Uwe Hermann Date: Fri, 10 Jan 2020 23:49:20 +0000 (+0100) Subject: sdcard_sd: Replace a hardcoded number for better readability. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=608b9c03f627a9c7d8ebc485c6b74cc61a4d6875;p=libsigrokdecode.git sdcard_sd: Replace a hardcoded number for better readability. --- diff --git a/decoders/sdcard_sd/pd.py b/decoders/sdcard_sd/pd.py index 73c7262..801e084 100644 --- a/decoders/sdcard_sd/pd.py +++ b/decoders/sdcard_sd/pd.py @@ -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]]])