Browse Source

Do a small raise for all move-back

Scott Lahteine 7 years ago
parent
commit
2672120a97
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Marlin/src/module/tool_change.cpp

+ 4
- 0
Marlin/src/module/tool_change.cpp View File

444
           destination[Z_AXIS] += z_diff;  // Include the Z restore with the "move back"
444
           destination[Z_AXIS] += z_diff;  // Include the Z restore with the "move back"
445
         #endif
445
         #endif
446
 
446
 
447
+        // Raise, move, and lower again
447
         if (safe_to_move && !no_move && IsRunning()) {
448
         if (safe_to_move && !no_move && IsRunning()) {
449
+          // Do a small lift to avoid the workpiece in the move back (below)
450
+          current_position[Z_AXIS] += 1.0;
451
+          planner.buffer_line_kinematic(current_position, planner.max_feedrate_mm_s[Z_AXIS], active_extruder);
448
           #if ENABLED(DEBUG_LEVELING_FEATURE)
452
           #if ENABLED(DEBUG_LEVELING_FEATURE)
449
             if (DEBUGGING(LEVELING)) DEBUG_POS("Move back", destination);
453
             if (DEBUGGING(LEVELING)) DEBUG_POS("Move back", destination);
450
           #endif
454
           #endif

Loading…
Cancel
Save