summaryrefslogtreecommitdiff
path: root/decoders/mlx90614/mlx90614.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-05-31 01:15:55 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-05-31 01:15:55 +0200
commit69ff19c84c5a6836702803cac4d1aa27e083d716 (patch)
treea267fe57106ece584541182271f38d63a89b9ea5 /decoders/mlx90614/mlx90614.py
parent365eeed279c3a2089dde413cdbb2a19a7726edb3 (diff)
downloadlibsigrokdecode-69ff19c84c5a6836702803cac4d1aa27e083d716.tar.gz
libsigrokdecode-69ff19c84c5a6836702803cac4d1aa27e083d716.zip
srd: mlx90614: Small bugfix.
Diffstat (limited to 'decoders/mlx90614/mlx90614.py')
-rw-r--r--decoders/mlx90614/mlx90614.py2
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