Skip to content

Commit

Permalink
Fixed an issue that M204 was not properly generated when verbose gcod…
Browse files Browse the repository at this point in the history
…e is off for klipper

bambulab#480
  • Loading branch information
SoftFever committed Mar 14, 2023
1 parent 06d8109 commit f914a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libslic3r/GCodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ std::string GCodeWriter::set_acceleration(unsigned int acceleration)
} else if (FLAVOR_IS(gcfKlipper) && this->config.accel_to_decel_enable) {
gcode << "SET_VELOCITY_LIMIT ACCEL_TO_DECEL=" << acceleration * this->config.accel_to_decel_factor / 100;
if (GCodeWriter::full_gcode_comment)
gcode << " ; adjust max_accel_to_decel to chosen % of new accel value\n";
gcode << "M204 S" << acceleration;
gcode << " ; adjust ACCEL_TO_DECEL";
gcode << "\nM204 S" << acceleration;
// Set max accel to decel to half of acceleration
} else
gcode << "M204 S" << acceleration;
Expand Down

0 comments on commit f914a36

Please sign in to comment.