From 885f27b8aea0df8be351825b9dd6061696f5edc9 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 16 Jul 2016 09:56:41 -0500 Subject: [PATCH] Oops, forgot to add newline. --- xs/src/libslic3r/GCodeWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/src/libslic3r/GCodeWriter.cpp b/xs/src/libslic3r/GCodeWriter.cpp index 7c2b17a14..e894f382a 100644 --- a/xs/src/libslic3r/GCodeWriter.cpp +++ b/xs/src/libslic3r/GCodeWriter.cpp @@ -187,6 +187,8 @@ GCodeWriter::set_acceleration(unsigned int acceleration) std::ostringstream gcode; if (FLAVOR_IS(gcfRepetier)) { gcode << "M201 X" << acceleration << " Y" << acceleration; + if (this->config.gcode_comments) gcode << " ; adjust acceleration"; + gcode << "\n"; gcode << "M202 X" << acceleration << " Y" << acceleration; } else { gcode << "M204 S" << acceleration;