]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: mlx90614: Small bugfix.
authorUwe Hermann <redacted>
Wed, 30 May 2012 23:15:55 +0000 (01:15 +0200)
committerUwe Hermann <redacted>
Wed, 30 May 2012 23:15:55 +0000 (01:15 +0200)
decoders/mlx90614/mlx90614.py

index 707eb7fc1663127e54f9ee5760a9ba639891aa0b..1ee88d78509bad088f36254e1c4ab5b778beb350 100644 (file)
@@ -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