mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-04-23 22:50:30 +08:00
ENH: emit printing acceleration before start gcode
As title. Make calibration to use printing acceleration, although no-using has no influence on calibration. Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I98cb791c1e0fba6b77360b60567c29511cff75b8
This commit is contained in:
parent
d97db7e617
commit
c02dd81c61
@ -1465,6 +1465,12 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
// Emit machine envelope limits for the Marlin firmware.
|
||||
this->print_machine_envelope(file, print);
|
||||
|
||||
//BBS: emit printing accelerate if has non-zero value
|
||||
if (m_config.default_acceleration.value > 0) {
|
||||
float acceleration = m_config.default_acceleration.value;
|
||||
file.write(m_writer.set_acceleration((unsigned int)floor(acceleration + 0.5)));
|
||||
}
|
||||
|
||||
// Disable fan.
|
||||
if (print.config().close_fan_the_first_x_layers.get_at(initial_extruder_id)) {
|
||||
file.write(m_writer.set_fan(0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user