@@ -445,12 +445,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
445445 position_min = X_center - displacement;
446446 position_max = X_center + displacement;
447447 echo_min_max (' X' , position_min, position_max);
448- if (false
449- #if HAS_ENDSTOPS
450- || position_min < (X_MIN_POS)
451- || position_max > (X_MAX_POS)
452- #endif
453- ) {
448+ if (TERN0 (HAS_ENDSTOPS, position_min < (X_MIN_POS) || position_max > (X_MAX_POS))) {
454449 err_out_of_bounds ();
455450 return true ;
456451 }
@@ -460,12 +455,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
460455 position_min = Y_center - displacement;
461456 position_max = Y_center + displacement;
462457 echo_min_max (' Y' , position_min, position_max);
463- if (false
464- #if HAS_ENDSTOPS
465- || position_min < (Y_MIN_POS)
466- || position_max > (Y_MAX_POS)
467- #endif
468- ) {
458+ if (TERN0 (HAS_ENDSTOPS, position_min < (Y_MIN_POS) || position_max > (Y_MAX_POS))) {
469459 err_out_of_bounds ();
470460 return true ;
471461 }
@@ -475,12 +465,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
475465 position_min = Z_center - displacement;
476466 position_max = Z_center + displacement;
477467 echo_min_max (' Z' , position_min, position_max);
478- if (false
479- #if HAS_ENDSTOPS
480- || position_min < (Z_MIN_POS)
481- || position_max > (Z_MAX_POS)
482- #endif
483- ) {
468+ if (TERN0 (HAS_ENDSTOPS, position_min < (Z_MIN_POS) || position_max > (Z_MAX_POS))) {
484469 err_out_of_bounds ();
485470 return true ;
486471 }
0 commit comments