From: Uwe Hermann Date: Tue, 31 Dec 2019 22:09:29 +0000 (+0100) Subject: mlx90614: Add annotation rows. X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=d94270b928f04ad26ef0cd6f83cd8c6d46d98fc8;ds=sidebyside mlx90614: Add annotation rows. Previously there were two different annotation classes with 100% overlap. --- 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):