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
commit 03c1045b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;