]> sigrok.org Git - libsigrokdecode.git/commitdiff
mlx90614: "Kelvin", not "degrees Kelvin".
authorUwe Hermann <redacted>
Wed, 21 Nov 2012 21:56:01 +0000 (22:56 +0100)
committerUwe Hermann <redacted>
Sat, 24 Nov 2012 19:21:21 +0000 (20:21 +0100)
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: