summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-27 18:47:27 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-27 18:47:27 +0100
commitafff6b1a0be19c4f0976309cae571a0c3e41c157 (patch)
treeb93574c78e36d6b6b87ab43d710c2a1532b46f11 /decoders
parent1c2b0d0b82a48bd323b46440f17b049090cabc79 (diff)
downloadlibsigrokdecode-afff6b1a0be19c4f0976309cae571a0c3e41c157.tar.gz
libsigrokdecode-afff6b1a0be19c4f0976309cae571a0c3e41c157.zip
srd: mlx90614: Show more exact temperature.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/mlx90614/mlx90614.py4
1 files changed, 2 insertions, 2 deletions
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: