mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-25 23:01:09 -05:00
Name the Tool When a Temperature Tower Steps the Nozzle Temperature (#16898)
The temperature tower re-targets the hotend at every layer with a bare M104. Every other temperature command on a multi-tool printer names its tool, and the firmware applies a tool-less M104 to whichever tool it considers active, so a tower assigned to any tool but the first heated the wrong nozzle. Pass the tool printing the tower, as the first-layer M109 right before it already does.
This commit is contained in:
1 parent
adea4e48a6
commit
f7d23705ea
2 files changed
+71
-2
No files matched your search
@@ -6751,6 +6751,9 @@ LayerResult GCode::process_layer(
|
||||
break;
|
||||
}
|
||||
case CalibMode::Calib_Temp_Tower: {
|
||||
// Name the tool printing the tower: on a multi-tool printer a bare M104 goes to
|
||||
// whichever tool the firmware considers active.
|
||||
const int tool = m_writer.filament() ? static_cast<int>(m_writer.filament()->id()) : -1;
|
||||
// ORCA-Belt: the sectioned variant prints each temperature as its
|
||||
// own object in native belt orientation, with the temperature
|
||||
// encoded in the object name ("temp_230") — step per object
|
||||
@@ -6759,9 +6762,9 @@ LayerResult GCode::process_layer(
|
||||
if (m_config.belt_printer.value &&
|
||||
sscanf(layer.object()->model_object()->name.c_str(), "temp_%d", §ioned_temp) == 1 &&
|
||||
sectioned_temp > 0) {
|
||||
gcode += writer().set_temperature(static_cast<unsigned int>(sectioned_temp));
|
||||
gcode += writer().set_temperature(static_cast<unsigned int>(sectioned_temp), false, tool);
|
||||
} else {
|
||||
gcode += writer().set_temperature(this->interpolate_value_across_layers(static_cast<float>(print.calib_params().start), static_cast<float>(print.calib_params().end), 5.0f));
|
||||
gcode += writer().set_temperature(this->interpolate_value_across_layers(static_cast<float>(print.calib_params().start), static_cast<float>(print.calib_params().end), 5.0f), false, tool);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user