From 2db704917a3c400bfcc334c408a8d05cf5743b6c Mon Sep 17 00:00:00 2001 From: Raphael Sobik Date: Mon, 11 Jan 2021 10:50:18 +0100 Subject: [PATCH] Use correct M204 command for acceleration M204 S is not supported for RepRapFrimware (https://duet3d.dozuki.com/Wiki/Gcode#Section_M204_Set_printing_and_travel_accelerations). --- src/libslic3r/GCodeWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libslic3r/GCodeWriter.cpp b/src/libslic3r/GCodeWriter.cpp index b35387762..847398e69 100644 --- a/src/libslic3r/GCodeWriter.cpp +++ b/src/libslic3r/GCodeWriter.cpp @@ -204,6 +204,9 @@ std::string GCodeWriter::set_acceleration(unsigned int acceleration) gcode << "\n"; // M202: Set max travel acceleration gcode << "M202 X" << acceleration << " Y" << acceleration; + } else if (FLAVOR_IS(gcfRepRapFirmware)) { + // M204: Set default acceleration + gcode << "M204 P" << acceleration; } else { // M204: Set default acceleration gcode << "M204 S" << acceleration;