]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mlx90614/pd.py
mlx90614: Add annotation rows.
[libsigrokdecode.git] / decoders / mlx90614 / pd.py
index f75d2050b6e61c6247393cc27acd9a04962365be..908f40a62eb70bb392f23e664ce9581c351de88e 100644 (file)
@@ -27,11 +27,15 @@ class Decoder(srd.Decoder):
     desc = 'Melexis MLX90614 infrared thermometer protocol.'
     license = 'gplv2+'
     inputs = ['i2c']
-    outputs = ['mlx90614']
+    outputs = []
     tags = ['IC', 'Sensor']
     annotations = (
-        ('celsius', 'Temperature in degrees Celsius'),
-        ('kelvin', 'Temperature in Kelvin'),
+        ('celsius', 'Temperature / °C'),
+        ('kelvin', 'Temperature / K'),
+    )
+    annotation_rows = (
+        ('temps-celsius', 'Temperature / °C', (0,)),
+        ('temps-kelvin', 'Temperature / K', (1,)),
     )
 
     def __init__(self):