diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-01 14:46:52 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-02-01 15:59:07 +0100 |
commit | 011ed1a3b28553b9932b5acbc74c6f19ab4c1eed (patch) | |
tree | 1708b5f68417e4646ab7ad774681f972d77003ca /decoders/avr_isp | |
parent | 9f6df6fe1aa837d0506b1b9bef6ee75c951a8da2 (diff) | |
download | libsigrokdecode-011ed1a3b28553b9932b5acbc74c6f19ab4c1eed.tar.gz libsigrokdecode-011ed1a3b28553b9932b5acbc74c6f19ab4c1eed.zip |
avr_isp: Fix a bug resulting in incorrect start samples.
Diffstat (limited to 'decoders/avr_isp')
-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 |