|
@@ -445,12 +445,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
|
445
|
445
|
position_min = X_center - displacement;
|
446
|
446
|
position_max = X_center + displacement;
|
447
|
447
|
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))) {
|
454
|
449
|
err_out_of_bounds();
|
455
|
450
|
return true;
|
456
|
451
|
}
|
|
@@ -460,12 +455,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
|
460
|
455
|
position_min = Y_center - displacement;
|
461
|
456
|
position_max = Y_center + displacement;
|
462
|
457
|
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))) {
|
469
|
459
|
err_out_of_bounds();
|
470
|
460
|
return true;
|
471
|
461
|
}
|
|
@@ -475,12 +465,7 @@ uint8_t L64XX_Marlin::get_user_input(uint8_t &driver_count, L64XX_axis_t axis_in
|
475
|
465
|
position_min = Z_center - displacement;
|
476
|
466
|
position_max = Z_center + displacement;
|
477
|
467
|
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))) {
|
484
|
469
|
err_out_of_bounds();
|
485
|
470
|
return true;
|
486
|
471
|
}
|