|
@@ -1596,9 +1596,20 @@ KeepDrawing:
|
1596
|
1596
|
if (encoderPosition) {
|
1597
|
1597
|
refresh_cmd_timeout();
|
1598
|
1598
|
|
1599
|
|
- // Limit to software endstops, if enabled
|
1600
|
|
- float min = (soft_endstops_enabled && min_software_endstops) ? soft_endstop_min[axis] : current_position[axis] - 1000,
|
1601
|
|
- max = (soft_endstops_enabled && max_software_endstops) ? soft_endstop_max[axis] : current_position[axis] + 1000;
|
|
1599
|
+ float min = current_position[axis] - 1000,
|
|
1600
|
+ max = current_position[axis] + 1000;
|
|
1601
|
+
|
|
1602
|
+ #if HAS_SOFTWARE_ENDSTOPS
|
|
1603
|
+ // Limit to software endstops, if enabled
|
|
1604
|
+ if (soft_endstops_enabled) {
|
|
1605
|
+ #if ENABLED(min_software_endstops)
|
|
1606
|
+ min = soft_endstop_min[axis];
|
|
1607
|
+ #endif
|
|
1608
|
+ #if ENABLED(max_software_endstops)
|
|
1609
|
+ max = soft_endstop_max[axis];
|
|
1610
|
+ #endif
|
|
1611
|
+ }
|
|
1612
|
+ #endif
|
1602
|
1613
|
|
1603
|
1614
|
// Get the new position
|
1604
|
1615
|
current_position[axis] += float((int32_t)encoderPosition) * move_menu_scale;
|