diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-05-31 01:15:55 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-05-31 01:15:55 +0200 |
commit | 69ff19c84c5a6836702803cac4d1aa27e083d716 (patch) | |
tree | a267fe57106ece584541182271f38d63a89b9ea5 /decoders | |
parent | 365eeed279c3a2089dde413cdbb2a19a7726edb3 (diff) | |
download | libsigrokdecode-69ff19c84c5a6836702803cac4d1aa27e083d716.tar.gz libsigrokdecode-69ff19c84c5a6836702803cac4d1aa27e083d716.zip |
srd: mlx90614: Small bugfix.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/mlx90614/mlx90614.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/decoders/mlx90614/mlx90614.py b/decoders/mlx90614/mlx90614.py index 707eb7f..1ee88d7 100644 --- a/decoders/mlx90614/mlx90614.py +++ b/decoders/mlx90614/mlx90614.py @@ -67,6 +67,8 @@ class Decoder(srd.Decoder): return self.state = 'GET TEMPERATURE' elif self.state == 'GET TEMPERATURE': + if cmd != 'DATA WRITE': + return if len(self.data) == 0: self.data.append(databyte) self.ss = ss |