From: Uwe Hermann Date: Sat, 28 Jul 2012 16:14:21 +0000 (+0200) Subject: srd: lm75: s/degrees Kelvin/Kelvin/. X-Git-Tag: libsigrokdecode-0.1.1~32 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f84d82c0aba0d249c085efa9532761941d0792b2;p=libsigrokdecode.git 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). --- 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':