summaryrefslogtreecommitdiff
path: root/decoders/mlx90614
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-11-21 22:56:01 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-11-24 20:21:21 +0100
commitf2e114dedd0456eee1858b1fc9d129b70b1d627a (patch)
tree5d11746196de2bad777587277fe1e9bf070e6edb /decoders/mlx90614
parent0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236 (diff)
downloadlibsigrokdecode-f2e114dedd0456eee1858b1fc9d129b70b1d627a.tar.gz
libsigrokdecode-f2e114dedd0456eee1858b1fc9d129b70b1d627a.zip
mlx90614: "Kelvin", not "degrees Kelvin".
Diffstat (limited to 'decoders/mlx90614')
-rw-r--r--decoders/mlx90614/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py
index 329f2b6..4377185 100644
--- a/decoders/mlx90614/pd.py
+++ b/decoders/mlx90614/pd.py
@@ -36,7 +36,7 @@ class Decoder(srd.Decoder):
options = {}
annotations = [
['Celsius', 'Temperature in degrees Celsius'],
- ['Kelvin', 'Temperature in degrees Kelvin'],
+ ['Kelvin', 'Temperature in Kelvin'],
]
def __init__(self, **kwargs):
@@ -79,7 +79,7 @@ class Decoder(srd.Decoder):
kelvin = (self.data[0] | (self.data[1] << 8)) * 0.02
celsius = kelvin - 273.15
self.putx([0, ['Temperature: %3.2f °C' % celsius]])
- self.putx([1, ['Temperature: %3.2f °K' % kelvin]])
+ self.putx([1, ['Temperature: %3.2f K' % kelvin]])
self.state = 'IGNORE START REPEAT'
self.data = []
else: