From 2e8899fcfc43471974c07b2ef5965075d73471c4 Mon Sep 17 00:00:00 2001 From: supermerill Date: Wed, 7 Sep 2022 21:08:49 +0200 Subject: [PATCH] wipetower with klipper: don't pass the extruder to SET_PRESSURE_ADVANCE if the extruder name is blank supermerill/SuperSlicer#3073 --- src/libslic3r/GCode/WipeTower.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp index bf503100bbc..d59727052d6 100644 --- a/src/libslic3r/GCode/WipeTower.cpp +++ b/src/libslic3r/GCode/WipeTower.cpp @@ -96,10 +96,7 @@ class WipeTowerWriter && m_tool_name[this->m_current_tool][0] != static_cast(('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");