mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: crash when use manual flow rate
fix the PA tower is effect Change-Id: Idc00090c75023d62beca2a32529a6749081de9ef
This commit is contained in:
parent
5beeed7593
commit
0bfc42989b
3 changed files with 6 additions and 3 deletions
|
@ -2805,7 +2805,10 @@ GCode::LayerResult GCode::process_layer(
|
|||
//BBS: set layer time fan speed after layer change gcode
|
||||
gcode += ";_SET_FAN_SPEED_CHANGING_LAYER\n";
|
||||
|
||||
if (print.calib_mode() == CalibMode::Calib_Temp_Tower) {
|
||||
if (print.calib_mode() == CalibMode::Calib_PA_Tower) {
|
||||
gcode += writer().set_pressure_advance(print.calib_params().start + static_cast<int>(print_z) * print.calib_params().step);
|
||||
}
|
||||
else if (print.calib_mode() == CalibMode::Calib_Temp_Tower) {
|
||||
auto offset = static_cast<unsigned int>(print_z / 10.001) * 5;
|
||||
gcode += writer().set_temperature(print.calib_params().end - offset);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue