aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2021-10-11 14:27:31 -0400
committerKevinOConnor <kevin@koconnor.net>2021-10-15 18:01:19 -0400
commitcd58a945e2526b4519e918c58b97657c604b0209 (patch)
treedad32754deb6974481352f2d6bb798fe8a1457d8
parentbf598d0922c470e929ddfe2f5724374e4c16c863 (diff)
downloadkutter-cd58a945e2526b4519e918c58b97657c604b0209.tar.gz
kutter-cd58a945e2526b4519e918c58b97657c604b0209.tar.xz
kutter-cd58a945e2526b4519e918c58b97657c604b0209.zip
temperature_host: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r--klippy/extras/temperature_host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/temperature_host.py b/klippy/extras/temperature_host.py
index 6097dbe2..f72336c5 100644
--- a/klippy/extras/temperature_host.py
+++ b/klippy/extras/temperature_host.py
@@ -75,7 +75,7 @@ class Temperature_HOST:
def get_status(self, eventtime):
return {
- 'temperature': self.temp,
+ 'temperature': round(self.temp, 2),
}