Browse Source

Move to safe zone on DELTA if using do_blocking_move_to*

Scott Lahteine 8 years ago
parent
commit
4bc6536f54
2 changed files with 10 additions and 2 deletions
  1. 5
    0
      Marlin/Marlin_main.cpp
  2. 5
    2
      Marlin/nozzle.h

+ 5
- 0
Marlin/Marlin_main.cpp View File

@@ -2177,6 +2177,11 @@ static void clean_up_after_endstop_or_probe_move() {
2177 2177
 
2178 2178
     float old_feedrate_mm_s = feedrate_mm_s;
2179 2179
 
2180
+    #if ENABLED(DELTA)
2181
+      if (current_position[Z_AXIS] > delta_clip_start_height)
2182
+        do_blocking_move_to_z(delta_clip_start_height);
2183
+    #endif
2184
+
2180 2185
     // Ensure a minimum height before moving the probe
2181 2186
     do_probe_raise(Z_CLEARANCE_BETWEEN_PROBES);
2182 2187
 

+ 5
- 2
Marlin/nozzle.h View File

@@ -70,8 +70,7 @@ class Nozzle {
70 70
 
71 71
         #if ENABLED(NOZZLE_CLEAN_GOBACK)
72 72
           // Move the nozzle to the initial point
73
-          do_blocking_move_to_z(initial.z);
74
-          do_blocking_move_to_xy(initial.x, initial.y);
73
+          do_blocking_move_to(initial.x, initial.y, initial.z);
75 74
         #endif // NOZZLE_CLEAN_GOBACK
76 75
 
77 76
       #endif // NOZZLE_CLEAN_FEATURE
@@ -149,6 +148,10 @@ class Nozzle {
149 148
       __attribute__((unused)) uint8_t const &objects = 0
150 149
     ) __attribute__((optimize ("Os"))) {
151 150
       #if ENABLED(NOZZLE_CLEAN_FEATURE)
151
+        #if ENABLED(DELTA)
152
+          if (current_position[Z_AXIS] > delta_clip_start_height)
153
+            do_blocking_move_to_z(delta_clip_start_height);
154
+        #endif
152 155
         switch (pattern) {
153 156
           case 1:
154 157
             Nozzle::zigzag(

Loading…
Cancel
Save