Skip to content

Commit

Permalink
Merge pull request #5740 from rsobik/patch-1
Browse files Browse the repository at this point in the history
Use correct M204 command for acceleration
  • Loading branch information
bubnikv committed Feb 10, 2021
2 parents 2097955 + 2db7049 commit 03c1045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libslic3r/GCodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03c1045

Please sign in to comment.