mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 17:10:47 +08: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
@ -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…
x
Reference in New Issue
Block a user