|
@@ -605,13 +605,19 @@
|
605
|
605
|
return print_line_from_here_to_there(ex, ey, ez, sx, sy, sz);
|
606
|
606
|
}
|
607
|
607
|
|
608
|
|
- // Decide whether to retract.
|
|
608
|
+ // Decide whether to retract & bump
|
609
|
609
|
|
610
|
610
|
if (dist_start > 2.0) {
|
611
|
611
|
retract_filament(destination);
|
612
|
612
|
//if (ubl.g26_debug_flag) SERIAL_ECHOLNPGM(" filament retracted.");
|
|
613
|
+
|
|
614
|
+ //if (ubl.g26_debug_flag) SERIAL_ECHOLNPGM(" Z bumping by 0.500 to minimize scraping.");
|
|
615
|
+ //todo: parameterize the bump height with a define
|
|
616
|
+ move_to(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS]+0.500, 0.0); // Z bump to minimize scraping
|
|
617
|
+ move_to(sx, sy, sz+0.500, 0.0); // Get to the starting point with no extrusion while bumped
|
613
|
618
|
}
|
614
|
|
- move_to(sx, sy, sz, 0.0); // Get to the starting point with no extrusion
|
|
619
|
+
|
|
620
|
+ move_to(sx, sy, sz, 0.0); // Get to the starting point with no extrusion / un-Z bump
|
615
|
621
|
|
616
|
622
|
const float e_pos_delta = line_length * g26_e_axis_feedrate * extrusion_multiplier;
|
617
|
623
|
|