]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
mlx90614: "Kelvin", not "degrees Kelvin".
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index 329f2b6a47c4d2701e0da90240c392852c38d6e7..43771856687b956c96ee675537ba3e1564e61351 100644 (file)
@@ -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: