From: Wolfram Sang Date: Wed, 26 Apr 2017 15:17:30 +0000 (+0200) Subject: sdcard_sd: don't interate over not implemented command X-Git-Tag: libsigrokdecode-0.5.0~44 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ee390f6741427244a43de56e6254e487eecbc530;p=libsigrokdecode.git sdcard_sd: don't interate over not implemented command There is no handler for CMD4 yet. Signed-off-by: Wolfram Sang --- diff --git a/decoders/sdcard_sd/pd.py b/decoders/sdcard_sd/pd.py index 02e78d7..b544b37 100644 --- a/decoders/sdcard_sd/pd.py +++ b/decoders/sdcard_sd/pd.py @@ -164,7 +164,7 @@ class Decoder(srd.Decoder): # Handle command. s = 'ACMD' if self.is_acmd else 'CMD' self.cmd_str = '%s%d (%s)' % (s, self.cmd, self.cmd_name(self.cmd)) - if self.cmd in (0, 2, 3, 4, 6, 7, 8, 9, 10, 13, 41, 51, 55): + if self.cmd in (0, 2, 3, 6, 7, 8, 9, 10, 13, 41, 51, 55): self.state = 'HANDLE CMD%d' % self.cmd else: self.state = 'HANDLE CMD999'