From 6fef1781d87eb6decc49aa54f2c63d6f0681c0c1 Mon Sep 17 00:00:00 2001 From: Raphael Sobik Date: Mon, 20 Dec 2021 11:03:36 +0100 Subject: [PATCH] Fixes setting tool on reprapfirmware (#7536) The if branch already contains the correct code for RepRapFirmware, but the condition misses the check for the RapRapFirmware flavour. --- src/libslic3r/GCodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCodeWriter.cpp b/src/libslic3r/GCodeWriter.cpp index 35dcdaa360c..354c909e103 100644 --- a/src/libslic3r/GCodeWriter.cpp +++ b/src/libslic3r/GCodeWriter.cpp @@ -101,7 +101,7 @@ std::string GCodeWriter::set_temperature(unsigned int temperature, bool wait, in } gcode << temperature; bool multiple_tools = this->multiple_extruders && ! m_single_extruder_multi_material; - if (tool != -1 && (multiple_tools || FLAVOR_IS(gcfMakerWare) || FLAVOR_IS(gcfSailfish)) ) { + if (tool != -1 && (multiple_tools || FLAVOR_IS(gcfMakerWare) || FLAVOR_IS(gcfSailfish) || FLAVOR_IS(gcfRepRapFirmware)) ) { if (FLAVOR_IS(gcfRepRapFirmware)) { gcode << " P" << tool; } else {