Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-12-24 18:08:12 +0300
committerGhostkeeper <rubend@tutanota.com>2020-12-24 18:08:12 +0300
commitba9e10cfd80623909eaa4217add4ba3665d2bee2 (patch)
tree8175aca789d8313672b537dc5386a357015e070b
parent9efe5dd5e29f36732148731c389c8bb280ab2402 (diff)
Round temperatures when displaying them
These are long lines for some screens. It'll save a bit of space. No PID controller can really control down to fractional degrees. Fan speed and flow rates are already integer settings. For speeds and retraction lenghts the fractions can be important. Done for #8967.
-rw-r--r--plugins/PostProcessingPlugin/scripts/ChangeAtZ.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py b/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py
index b4036f7ff2..a23e52b750 100644
--- a/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py
+++ b/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py
@@ -774,15 +774,15 @@ class ChangeAtZProcessor:
# looking for wait for bed temp
if "bedTemp" in values:
- codes.append("BedTemp: " + str(values["bedTemp"]))
+ codes.append("BedTemp: " + str(round(values["bedTemp"])))
# set our extruder one temp (if specified)
if "extruderOne" in values:
- codes.append("Extruder 1 Temp: " + str(values["extruderOne"]))
+ codes.append("Extruder 1 Temp: " + str(round(values["extruderOne"])))
# set our extruder two temp (if specified)
if "extruderTwo" in values:
- codes.append("Extruder 2 Temp: " + str(values["extruderTwo"]))
+ codes.append("Extruder 2 Temp: " + str(round(values["extruderTwo"])))
# set global flow rate
if "flowrate" in values: