1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Merge pull request #5740 from rsobik/patch-1

Use correct M204 command for acceleration
This commit is contained in:
Vojtěch Bubník
2021-02-10 11:12:15 +01:00
committed by GitHub
+3
View File
@@ -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;