From afff6b1a0be19c4f0976309cae571a0c3e41c157 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 27 Jan 2012 18:47:27 +0100 Subject: srd: mlx90614: Show more exact temperature. --- decoders/mlx90614/mlx90614.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoders') diff --git a/decoders/mlx90614/mlx90614.py b/decoders/mlx90614/mlx90614.py index fa1621c..235d70d 100644 --- a/decoders/mlx90614/mlx90614.py +++ b/decoders/mlx90614/mlx90614.py @@ -79,8 +79,8 @@ class Decoder(srd.Decoder): else: kelvin = (self.data[0] | (self.data[1] << 8)) * 0.02 celsius = kelvin - 273.15 - self.putx([0, ['Temperature: %d °C' % celsius]]) - self.putx([1, ['Temperature: %d °K' % kelvin]]) + self.putx([0, ['Temperature: %3.2f °C' % celsius]]) + self.putx([1, ['Temperature: %3.2f °K' % kelvin]]) self.state = 'IGNORE START REPEAT' self.data = [] else: -- cgit v1.2.3-70-g09d2