summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2020-01-11 00:49:20 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2020-01-11 01:22:22 +0100
commit608b9c03f627a9c7d8ebc485c6b74cc61a4d6875 (patch)
treefb1846ef13f2e1b3ab2c2057e5f5cbd87698fbc6
parent4dfde5a5e257f250c33ba35f8dc4b01ee35c262f (diff)
downloadlibsigrokdecode-608b9c03f627a9c7d8ebc485c6b74cc61a4d6875.tar.gz
libsigrokdecode-608b9c03f627a9c7d8ebc485c6b74cc61a4d6875.zip
sdcard_sd: Replace a hardcoded number for better readability.
-rw-r--r--decoders/sdcard_sd/pd.py2
1 files changed, 1 insertions, 1 deletions
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]]])