Wipe tower: add G4 S0 before a temp change G-code

This commit is contained in:
Lukas Matena 2023-12-20 15:03:00 +01:00
parent a75cb5f787
commit 18150a82d9

View File

@ -352,6 +352,7 @@ public:
// Set extruder temperature, don't wait by default.
WipeTowerWriter& set_extruder_temp(int temperature, bool wait = false)
{
m_gcode += "G4 S0\n"; // to flush planner queue
m_gcode += "M" + std::to_string(wait ? 109 : 104) + " S" + std::to_string(temperature) + "\n";
return *this;
}