|
@@ -1475,14 +1475,12 @@ static void setup_for_endstop_move() {
|
1475
|
1475
|
inline void raise_z_after_probing() { do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING); }
|
1476
|
1476
|
|
1477
|
1477
|
static void clean_up_after_endstop_move() {
|
1478
|
|
- #if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
1479
|
|
- #if ENABLED(DEBUG_LEVELING_FEATURE)
|
1480
|
|
- if (marlin_debug_flags & DEBUG_LEVELING) {
|
1481
|
|
- SERIAL_ECHOLNPGM("clean_up_after_endstop_move > ENDSTOPS_ONLY_FOR_HOMING > enable_endstops(false)");
|
1482
|
|
- }
|
1483
|
|
- #endif
|
1484
|
|
- enable_endstops(false);
|
|
1478
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
1479
|
+ if (marlin_debug_flags & DEBUG_LEVELING) {
|
|
1480
|
+ SERIAL_ECHOLNPGM("clean_up_after_endstop_move > ENDSTOPS_ONLY_FOR_HOMING > endstops_not_homing()");
|
|
1481
|
+ }
|
1485
|
1482
|
#endif
|
|
1483
|
+ endstops_not_homing();
|
1486
|
1484
|
feedrate = saved_feedrate;
|
1487
|
1485
|
feedrate_multiplier = saved_feedrate_multiplier;
|
1488
|
1486
|
refresh_cmd_timeout();
|
|
@@ -4585,14 +4583,14 @@ inline void gcode_M119() {
|
4585
|
4583
|
}
|
4586
|
4584
|
|
4587
|
4585
|
/**
|
4588
|
|
- * M120: Enable endstops
|
|
4586
|
+ * M120: Enable endstops and set non-homing endstop state to "enabled"
|
4589
|
4587
|
*/
|
4590
|
|
-inline void gcode_M120() { enable_endstops(true); }
|
|
4588
|
+inline void gcode_M120() { enable_endstops_globally(true); }
|
4591
|
4589
|
|
4592
|
4590
|
/**
|
4593
|
|
- * M121: Disable endstops
|
|
4591
|
+ * M121: Disable endstops and set non-homing endstop state to "disabled"
|
4594
|
4592
|
*/
|
4595
|
|
-inline void gcode_M121() { enable_endstops(false); }
|
|
4593
|
+inline void gcode_M121() { enable_endstops_globally(false); }
|
4596
|
4594
|
|
4597
|
4595
|
#if ENABLED(BLINKM)
|
4598
|
4596
|
|