Add MANUAL_PROBE_START_Z for manual probing
This commit is contained in:
parent
db057eb453
commit
888774cbc3
2 changed files with 9 additions and 1 deletions
|
|
@ -4292,7 +4292,14 @@ void home_all_axes() { gcode_G28(true); }
|
|||
|
||||
inline void _manual_goto_xy(const float &rx, const float &ry) {
|
||||
|
||||
#if MANUAL_PROBE_HEIGHT > 0
|
||||
#ifdef MANUAL_PROBE_START_Z
|
||||
#if MANUAL_PROBE_HEIGHT > 0
|
||||
do_blocking_move_to(rx, ry, MANUAL_PROBE_HEIGHT);
|
||||
do_blocking_move_to_z(MAX(0,MANUAL_PROBE_START_Z));
|
||||
#else
|
||||
do_blocking_move_to(rx, ry, MAX(0,MANUAL_PROBE_START_Z));
|
||||
#endif
|
||||
#elif MANUAL_PROBE_HEIGHT > 0
|
||||
const float prev_z = current_position[Z_AXIS];
|
||||
do_blocking_move_to(rx, ry, MANUAL_PROBE_HEIGHT);
|
||||
do_blocking_move_to_z(prev_z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue