Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2022-07-22 04:38:43 +0300
committersupermerill <merill@free.fr>2022-07-22 12:21:39 +0300
commit431a060e3477567fc7b0d3e13b9ed0b88907d933 (patch)
tree0b173648932d395dde4093ea45cb24493e8e363e
parent77eb80611432935d492ee4f68e5a3421c77042c9 (diff)
Set the extruder for disabling pressure advance in wipetower before ramming for klipper.
supermerill/SuperSlicer#2934
-rw-r--r--src/libslic3r/GCode/WipeTower.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp
index b8935553f..3f9fa3791 100644
--- a/src/libslic3r/GCode/WipeTower.cpp
+++ b/src/libslic3r/GCode/WipeTower.cpp
@@ -87,9 +87,9 @@ public:
WipeTowerWriter& disable_linear_advance() {
if (m_gcode_flavor == gcfRepRap || m_gcode_flavor == gcfSprinter)
- m_gcode += (std::string("M572 D") + std::to_string(m_current_tool) + " S0\n");
+ m_gcode += (std::string("M572 D") + std::to_string(this->m_current_tool) + " S0\n");
else if(m_gcode_flavor == gcfKlipper)
- m_gcode += std::string("SET_PRESSURE_ADVANCE ADVANCE=0\n");
+ m_gcode += std::string("SET_PRESSURE_ADVANCE ADVANCE=0 EXTRUDER=extruder") + std::to_string(this->m_current_tool) + "\n";
else
m_gcode += std::string("M900 K0\n");
return *this;