Fix and improve software endstops (#13386)
This commit is contained in:
@ -86,26 +86,26 @@ static void _lcd_move_xyz(PGM_P name, AxisEnum axis) {
|
||||
if (soft_endstops_enabled) switch (axis) {
|
||||
case X_AXIS:
|
||||
#if ENABLED(MIN_SOFTWARE_ENDSTOP_X)
|
||||
min = soft_endstop_min[X_AXIS];
|
||||
min = soft_endstop[X_AXIS].min;
|
||||
#endif
|
||||
#if ENABLED(MAX_SOFTWARE_ENDSTOP_X)
|
||||
max = soft_endstop_max[X_AXIS];
|
||||
max = soft_endstop[X_AXIS].max;
|
||||
#endif
|
||||
break;
|
||||
case Y_AXIS:
|
||||
#if ENABLED(MIN_SOFTWARE_ENDSTOP_Y)
|
||||
min = soft_endstop_min[Y_AXIS];
|
||||
min = soft_endstop[Y_AXIS].min;
|
||||
#endif
|
||||
#if ENABLED(MAX_SOFTWARE_ENDSTOP_Y)
|
||||
max = soft_endstop_max[Y_AXIS];
|
||||
max = soft_endstop[Y_AXIS].max;
|
||||
#endif
|
||||
break;
|
||||
case Z_AXIS:
|
||||
#if ENABLED(MIN_SOFTWARE_ENDSTOP_Z)
|
||||
min = soft_endstop_min[Z_AXIS];
|
||||
min = soft_endstop[Z_AXIS].min;
|
||||
#endif
|
||||
#if ENABLED(MAX_SOFTWARE_ENDSTOP_Z)
|
||||
max = soft_endstop_max[Z_AXIS];
|
||||
max = soft_endstop[Z_AXIS].max;
|
||||
#endif
|
||||
default: break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user