|
@@ -9324,6 +9324,12 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
|
9324
|
9324
|
current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset;
|
9325
|
9325
|
inactive_extruder_x_pos = RAW_X_POSITION(destination[X_AXIS]);
|
9326
|
9326
|
extruder_duplication_enabled = false;
|
|
9327
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
9328
|
+ if (DEBUGGING(LEVELING)) {
|
|
9329
|
+ SERIAL_ECHOLNPAIR("Set inactive_extruder_x_pos=", inactive_extruder_x_pos);
|
|
9330
|
+ SERIAL_ECHOLNPGM("Clear extruder_duplication_enabled");
|
|
9331
|
+ }
|
|
9332
|
+ #endif
|
9327
|
9333
|
break;
|
9328
|
9334
|
}
|
9329
|
9335
|
|
|
@@ -11047,9 +11053,18 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11047
|
11053
|
);
|
11048
|
11054
|
delayed_move_time = 0;
|
11049
|
11055
|
active_extruder_parked = false;
|
|
11056
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
11057
|
+ if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Clear active_extruder_parked");
|
|
11058
|
+ #endif
|
11050
|
11059
|
break;
|
11051
|
11060
|
case DXC_DUPLICATION_MODE:
|
11052
|
11061
|
if (active_extruder == 0) {
|
|
11062
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
11063
|
+ if (DEBUGGING(LEVELING)) {
|
|
11064
|
+ SERIAL_ECHOPAIR("Set planner X", LOGICAL_X_POSITION(inactive_extruder_x_pos));
|
|
11065
|
+ SERIAL_ECHOLNPAIR(" ... Line to X", current_position[X_AXIS] + duplicate_extruder_x_offset);
|
|
11066
|
+ }
|
|
11067
|
+ #endif
|
11053
|
11068
|
// move duplicate extruder into correct duplication position.
|
11054
|
11069
|
planner.set_position_mm(
|
11055
|
11070
|
LOGICAL_X_POSITION(inactive_extruder_x_pos),
|
|
@@ -11066,6 +11081,14 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11066
|
11081
|
stepper.synchronize();
|
11067
|
11082
|
extruder_duplication_enabled = true;
|
11068
|
11083
|
active_extruder_parked = false;
|
|
11084
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
11085
|
+ if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Set extruder_duplication_enabled\nClear active_extruder_parked");
|
|
11086
|
+ #endif
|
|
11087
|
+ }
|
|
11088
|
+ else {
|
|
11089
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
11090
|
+ if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Active extruder not 0");
|
|
11091
|
+ #endif
|
11069
|
11092
|
}
|
11070
|
11093
|
break;
|
11071
|
11094
|
}
|