mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-23 03:34:27 +08:00
#674 correct standby temperature
This commit is contained in:
parent
c4851d5896
commit
4a0928d279
@ -1237,9 +1237,12 @@ static void init_multiextruders(FILE *file, Print &print, GCodeWriter & writer,
|
||||
//set standby temp for reprap
|
||||
if (std::set<uint8_t>{gcfRepRap}.count(print.config().gcode_flavor.value) > 0) {
|
||||
for (uint16_t tool_id : tool_ordering.all_extruders()) {
|
||||
int standby_temp = int(print.config().temperature.get_at(tool_id));
|
||||
if(print.config().ooze_prevention.value)
|
||||
standby_temp += print.config().standby_temperature_delta.value;
|
||||
fprintf(file, "G10 P%d R%d S%d ; sets the standby temperature\n",
|
||||
tool_id,
|
||||
int(print.config().filament_toolchange_temp.get_at(tool_id)),
|
||||
standby_temp,
|
||||
int(print.config().temperature.get_at(tool_id)));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user