From 69ff19c84c5a6836702803cac4d1aa27e083d716 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 31 May 2012 01:15:55 +0200 Subject: srd: mlx90614: Small bugfix. --- decoders/mlx90614/mlx90614.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'decoders/mlx90614/mlx90614.py') 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 -- cgit v1.2.3-70-g09d2