From: Uwe Hermann Date: Wed, 30 May 2012 23:15:55 +0000 (+0200) Subject: srd: mlx90614: Small bugfix. X-Git-Tag: libsigrokdecode-0.1.1~94 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=69ff19c84c5a6836702803cac4d1aa27e083d716;p=libsigrokdecode.git srd: mlx90614: Small bugfix. --- 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