Implementing [FR] #7548
Added new configuration to inhibit XYZ movements when home is not done
This commit is contained in:
parent
ac70048945
commit
33d28c24bf
4 changed files with 39 additions and 13 deletions
|
|
@ -2929,19 +2929,19 @@ void kill_screen(const char* lcd_msg) {
|
|||
*
|
||||
*/
|
||||
|
||||
#if IS_KINEMATIC
|
||||
#if IS_KINEMATIC || ENABLED(NO_MOTION_BEFORE_HOMING)
|
||||
#define _MOVE_XYZ_ALLOWED (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
|
||||
#if ENABLED(DELTA)
|
||||
#define _MOVE_XY_ALLOWED (current_position[Z_AXIS] <= delta_clip_start_height)
|
||||
void lcd_lower_z_to_clip_height() {
|
||||
line_to_z(delta_clip_start_height);
|
||||
lcd_synchronize();
|
||||
}
|
||||
#else
|
||||
#define _MOVE_XY_ALLOWED true
|
||||
#endif
|
||||
#else
|
||||
#define _MOVE_XYZ_ALLOWED true
|
||||
#endif
|
||||
|
||||
#if ENABLED(DELTA)
|
||||
#define _MOVE_XY_ALLOWED (current_position[Z_AXIS] <= delta_clip_start_height)
|
||||
void lcd_lower_z_to_clip_height() {
|
||||
line_to_z(delta_clip_start_height);
|
||||
lcd_synchronize();
|
||||
}
|
||||
#else
|
||||
#define _MOVE_XY_ALLOWED true
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue