diff options
author | Eric Callahan <arksine.code@gmail.com> | 2021-10-11 14:27:15 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2021-10-15 18:01:19 -0400 |
commit | bf598d0922c470e929ddfe2f5724374e4c16c863 (patch) | |
tree | 7f4d75df785cef34f333c122665e5a704443e0bd /klippy | |
parent | 916ef4483ac92a7c4d127ef63346cddedccb4014 (diff) | |
download | kutter-bf598d0922c470e929ddfe2f5724374e4c16c863.tar.gz kutter-bf598d0922c470e929ddfe2f5724374e4c16c863.tar.xz kutter-bf598d0922c470e929ddfe2f5724374e4c16c863.zip |
lm75: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/lm75.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/lm75.py b/klippy/extras/lm75.py index 44e9a6ec..7571f270 100644 --- a/klippy/extras/lm75.py +++ b/klippy/extras/lm75.py @@ -98,7 +98,7 @@ class LM75: def get_status(self, eventtime): return { - 'temperature': self.temp, + 'temperature': round(self.temp, 2), } |