From d94270b928f04ad26ef0cd6f83cd8c6d46d98fc8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 31 Dec 2019 23:09:29 +0100 Subject: [PATCH] mlx90614: Add annotation rows. Previously there were two different annotation classes with 100% overlap. --- decoders/mlx90614/pd.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index f0dbe22..908f40a 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -30,8 +30,12 @@ class Decoder(srd.Decoder): 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): -- 2.30.2