mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-16 04:46:01 +08: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
@ -1871,7 +1871,9 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
// SoftFever: calib
|
// SoftFever: calib
|
||||||
if (print.calib_params().mode == CalibMode::Calib_PA_Line) {
|
if (print.calib_params().mode == CalibMode::Calib_PA_Line) {
|
||||||
std::string gcode;
|
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) {
|
if (m_config.default_jerk.value > 0) {
|
||||||
double jerk = m_config.outer_wall_jerk.value;
|
double jerk = m_config.outer_wall_jerk.value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user