|
@ -46,15 +46,24 @@ Nozzle nozzle; |
|
|
|
|
|
|
|
|
// Move to the starting point
|
|
|
// Move to the starting point
|
|
|
#if ENABLED(NOZZLE_CLEAN_NO_Z) |
|
|
#if ENABLED(NOZZLE_CLEAN_NO_Z) |
|
|
do_blocking_move_to_xy(start); |
|
|
#if ENABLED(NOZZLE_CLEAN_NO_Y) |
|
|
|
|
|
do_blocking_move_to_x(start.x); |
|
|
|
|
|
#else |
|
|
|
|
|
do_blocking_move_to_xy(start); |
|
|
|
|
|
#endif |
|
|
#else |
|
|
#else |
|
|
do_blocking_move_to(start); |
|
|
do_blocking_move_to(start); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Start the stroke pattern
|
|
|
// Start the stroke pattern
|
|
|
LOOP_L_N(i, strokes >> 1) { |
|
|
LOOP_L_N(i, strokes >> 1) { |
|
|
do_blocking_move_to_xy(end); |
|
|
#if ENABLED(NOZZLE_CLEAN_NO_Y) |
|
|
do_blocking_move_to_xy(start); |
|
|
do_blocking_move_to_x(end.x); |
|
|
|
|
|
do_blocking_move_to_x(start.x); |
|
|
|
|
|
#else |
|
|
|
|
|
do_blocking_move_to_xy(end); |
|
|
|
|
|
do_blocking_move_to_xy(start); |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
TERN_(NOZZLE_CLEAN_GOBACK, do_blocking_move_to(oldpos)); |
|
|
TERN_(NOZZLE_CLEAN_GOBACK, do_blocking_move_to(oldpos)); |
|
|