mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Fix acceleration being set when disabled in PA line calibration (#1011)
Update GCode.cpp Fixed issue where acceleration was being set on PA line calibration even when disabled in settings
This commit is contained in:
parent
dedd900be4
commit
aeb2b0e41d
1 changed files with 3 additions and 1 deletions
|
@ -1871,7 +1871,9 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||
// SoftFever: calib
|
||||
if (print.calib_params().mode == CalibMode::Calib_PA_Line) {
|
||||
std::string gcode;
|
||||
gcode += m_writer.set_acceleration((unsigned int)floor(m_config.outer_wall_acceleration.value + 0.5));
|
||||
if ((m_config.default_acceleration.value > 0 && m_config.outer_wall_acceleration.value > 0)) {
|
||||
gcode += m_writer.set_acceleration((unsigned int)floor(m_config.outer_wall_acceleration.value + 0.5));
|
||||
}
|
||||
|
||||
if (m_config.default_jerk.value > 0) {
|
||||
double jerk = m_config.outer_wall_jerk.value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue