mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
Fixed an issue that M204 was not properly generated when verbose gcode is off for klipper
#480
This commit is contained in:
parent
06d81098f3
commit
f914a36a7f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue