|
@@ -1388,6 +1388,7 @@ static void setup_for_endstop_move() {
|
1388
|
1388
|
inline void do_blocking_move_to_xy(float x, float y) { do_blocking_move_to(x, y, current_position[Z_AXIS]); }
|
1389
|
1389
|
inline void do_blocking_move_to_x(float x) { do_blocking_move_to(x, current_position[Y_AXIS], current_position[Z_AXIS]); }
|
1390
|
1390
|
inline void do_blocking_move_to_z(float z) { do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z); }
|
|
1391
|
+ inline void raise_z_after_probing() { do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING); }
|
1391
|
1392
|
|
1392
|
1393
|
static void clean_up_after_endstop_move() {
|
1393
|
1394
|
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
|
@@ -1518,11 +1519,11 @@ static void setup_for_endstop_move() {
|
1518
|
1519
|
if (marlin_debug_flags & DEBUG_LEVELING) {
|
1519
|
1520
|
SERIAL_ECHOPAIR("Raise Z (after) by ", (float)Z_RAISE_AFTER_PROBING);
|
1520
|
1521
|
SERIAL_EOL;
|
1521
|
|
- SERIAL_ECHOPAIR("> SERVO_ENDSTOPS > do_blocking_move_to_z ", current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING);
|
|
1522
|
+ SERIAL_ECHOPAIR("> SERVO_ENDSTOPS > raise_z_after_probing()");
|
1522
|
1523
|
SERIAL_EOL;
|
1523
|
1524
|
}
|
1524
|
1525
|
#endif
|
1525
|
|
- do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING); // this also updates current_position
|
|
1526
|
+ raise_z_after_probing(); // this also updates current_position
|
1526
|
1527
|
st_synchronize();
|
1527
|
1528
|
}
|
1528
|
1529
|
#endif
|
|
@@ -1794,7 +1795,7 @@ static void setup_for_endstop_move() {
|
1794
|
1795
|
float oldXpos = current_position[X_AXIS]; // save x position
|
1795
|
1796
|
if (dock) {
|
1796
|
1797
|
#if Z_RAISE_AFTER_PROBING > 0
|
1797
|
|
- do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING); // raise Z
|
|
1798
|
+ raise_z_after_probing(); // raise Z
|
1798
|
1799
|
#endif
|
1799
|
1800
|
do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1); // Dock sled a bit closer to ensure proper capturing
|
1800
|
1801
|
digitalWrite(SLED_PIN, LOW); // turn off magnet
|
|
@@ -3126,7 +3127,14 @@ inline void gcode_G28() {
|
3126
|
3127
|
|
3127
|
3128
|
#endif // !AUTO_BED_LEVELING_GRID
|
3128
|
3129
|
|
3129
|
|
- #if DISABLED(DELTA)
|
|
3130
|
+ #if ENABLED(DELTA)
|
|
3131
|
+ // Allen Key Probe for Delta
|
|
3132
|
+ #if ENABLED(Z_PROBE_ALLEN_KEY)
|
|
3133
|
+ stow_z_probe();
|
|
3134
|
+ #elif Z_RAISE_AFTER_PROBING > 0
|
|
3135
|
+ raise_z_after_probing();
|
|
3136
|
+ #endif
|
|
3137
|
+ #else // !DELTA
|
3130
|
3138
|
if (verbose_level > 0)
|
3131
|
3139
|
plan_bed_level_matrix.debug(" \n\nBed Level Correction Matrix:");
|
3132
|
3140
|
|
|
@@ -3187,13 +3195,13 @@ inline void gcode_G28() {
|
3187
|
3195
|
}
|
3188
|
3196
|
#endif
|
3189
|
3197
|
}
|
3190
|
|
- #endif // !DELTA
|
3191
|
3198
|
|
3192
|
|
- #if ENABLED(Z_PROBE_SLED)
|
3193
|
|
- dock_sled(true); // dock the Z probe
|
3194
|
|
- #elif ENABLED(Z_PROBE_ALLEN_KEY) //|| SERVO_LEVELING
|
3195
|
|
- stow_z_probe();
|
3196
|
|
- #endif
|
|
3199
|
+ // Sled assembly for Cartesian bots
|
|
3200
|
+ #if ENABLED(Z_PROBE_SLED)
|
|
3201
|
+ dock_sled(true); // dock the sled
|
|
3202
|
+ #endif
|
|
3203
|
+
|
|
3204
|
+ #endif // !DELTA
|
3197
|
3205
|
|
3198
|
3206
|
#ifdef Z_PROBE_END_SCRIPT
|
3199
|
3207
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|