summaryrefslogtreecommitdiff
path: root/decoders/mlx90614/pd.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-12-31 23:09:29 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2020-01-01 01:59:54 +0100
commitd94270b928f04ad26ef0cd6f83cd8c6d46d98fc8 (patch)
treef54fa40df9eecd151200ac8a94f4a77f25ac7aa9 /decoders/mlx90614/pd.py
parentbf1266444d67a295a9a81124778a4c37467629ce (diff)
downloadlibsigrokdecode-d94270b928f04ad26ef0cd6f83cd8c6d46d98fc8.tar.gz
libsigrokdecode-d94270b928f04ad26ef0cd6f83cd8c6d46d98fc8.zip
mlx90614: Add annotation rows.
Previously there were two different annotation classes with 100% overlap.
Diffstat (limited to 'decoders/mlx90614/pd.py')
-rw-r--r--decoders/mlx90614/pd.py8
1 files 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):