mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
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.
This commit is contained in:
parent
9efe5dd5e2
commit
ba9e10cfd8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user