Tool-change debug option

This commit is contained in:
Scott Lahteine
2020-07-14 17:58:37 -05:00
committed by Scott Lahteine
parent 3513ea7ae1
commit b40440cf38
5 changed files with 145 additions and 161 deletions

View File

@ -92,8 +92,10 @@
case DXC_AUTO_PARK_MODE:
break;
case DXC_DUPLICATION_MODE:
if (parser.seen('X')) duplicate_extruder_x_offset = _MAX(parser.value_linear_units(), X2_MIN_POS - x_home_pos(0));
// Set the X offset, but no less than the safety gap
if (parser.seen('X')) duplicate_extruder_x_offset = _MAX(parser.value_linear_units(), (X2_MIN_POS) - (X1_MIN_POS));
if (parser.seen('R')) duplicate_extruder_temp_offset = parser.value_celsius_diff();
// Always switch back to tool 0
if (active_extruder != 0) tool_change(0);
break;
default: