aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2021-10-11 14:26:09 -0400
committerKevinOConnor <kevin@koconnor.net>2021-10-15 18:01:19 -0400
commite65b2593c67b223f1cca1328794b353d0669e43a (patch)
tree26036c71f3c196055899c8e575236828f42468c6
parent1153803360d1b62fb3c650b336b29b7a1a21473d (diff)
downloadkutter-e65b2593c67b223f1cca1328794b353d0669e43a.tar.gz
kutter-e65b2593c67b223f1cca1328794b353d0669e43a.tar.xz
kutter-e65b2593c67b223f1cca1328794b353d0669e43a.zip
heaters: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r--klippy/extras/heaters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 048f293e..74b40926 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -133,7 +133,7 @@ class Heater:
target_temp = self.target_temp
smoothed_temp = self.smoothed_temp
last_pwm_value = self.last_pwm_value
- return {'temperature': smoothed_temp, 'target': target_temp,
+ return {'temperature': round(smoothed_temp, 2), 'target': target_temp,
'power': last_pwm_value}
cmd_SET_HEATER_TEMPERATURE_help = "Sets a heater temperature"
def cmd_SET_HEATER_TEMPERATURE(self, gcmd):