diff options
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/avr_isp/pd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/avr_isp/pd.py b/decoders/avr_isp/pd.py index be8ee29..05a46ec 100644 --- a/decoders/avr_isp/pd.py +++ b/decoders/avr_isp/pd.py @@ -177,13 +177,13 @@ class Decoder(srd.Decoder): self.ss, self.es = ss, es + if len(self.mosi_bytes) == 0: + self.cmd_ss = ss + # Append new bytes. self.mosi_bytes.append(mosi) self.miso_bytes.append(miso) - if len(self.mosi_bytes) == 0: - self.cmd_ss = ss - # All commands consist of 4 bytes. if len(self.mosi_bytes) < 4: return |