Skip to content

Commit

Permalink
wipetower with klipper: don't pass the extruder to SET_PRESSURE_ADVAN…
Browse files Browse the repository at this point in the history
…CE if the extruder name is blank

#3073
  • Loading branch information
supermerill committed Sep 12, 2022
1 parent 5c80ca4 commit c8371ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libslic3r/GCode/WipeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ class WipeTowerWriter
&& m_tool_name[this->m_current_tool][0] != static_cast<char>(('0' + this->m_current_tool))) {
m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0 EXTRUDER=" + m_tool_name[this->m_current_tool] + "\n";
} else {
m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0 EXTRUDER=extruder";
if (this->m_current_tool > 0)
m_gcode += std::to_string(this->m_current_tool);
m_gcode += "\n";
m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0\n";
}
} else {
m_gcode += std::string("M900 K0\n");
Expand Down

0 comments on commit c8371ce

Please sign in to comment.