summaryrefslogtreecommitdiff
path: root/decoders/lm75
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-07-28 18:14:21 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-07-28 23:39:47 +0200
commitf84d82c0aba0d249c085efa9532761941d0792b2 (patch)
tree46247502b3099ae1e24eb8179bb7019636f308f1 /decoders/lm75
parent1fd698dcf076c62e53e089be50572efae6b68f15 (diff)
downloadlibsigrokdecode-f84d82c0aba0d249c085efa9532761941d0792b2.tar.gz
libsigrokdecode-f84d82c0aba0d249c085efa9532761941d0792b2.zip
srd: lm75: s/degrees Kelvin/Kelvin/.
The temperature unit is nowadays called just "Kelvin", not "degrees Kelvin" (even though this was not always the case).
Diffstat (limited to 'decoders/lm75')
-rw-r--r--decoders/lm75/lm75.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/lm75/lm75.py b/decoders/lm75/lm75.py
index 05ff231..9d2f0ab 100644
--- a/decoders/lm75/lm75.py
+++ b/decoders/lm75/lm75.py
@@ -63,7 +63,7 @@ class Decoder(srd.Decoder):
}
annotations = [
['Celsius', 'Temperature in degrees Celsius'],
- ['Kelvin', 'Temperature in degrees Kelvin'],
+ ['Kelvin', 'Temperature in Kelvin'],
['Text (verbose)', 'Human-readable text (verbose)'],
['Text', 'Human-readable text'],
['Warnings', 'Human-readable warnings'],
@@ -110,7 +110,7 @@ class Decoder(srd.Decoder):
celsius = float('%d.%d' % (before, after))
kelvin = celsius + 273.15
self.putb([0, ['%s: %.1f °C' % (s, celsius)]])
- self.putb([1, ['%s: %.1f °K' % (s, kelvin)]])
+ self.putb([1, ['%s: %.1f K' % (s, kelvin)]])
# Warn about the temperature register (0x00) being read-only.
if s == 'Temperature' and rw == 'WRITE':