Prevent feedhold from progressing while dwell/spindle spin-up is in progress

This commit is contained in:
Rob Giseburt
2020-01-10 19:30:27 -06:00
parent eea50b5ed2
commit c68f56e6e0
+1 -1
View File
@@ -761,7 +761,7 @@ stat_t _feedhold_with_actions() // Execute Case (5)
if (cm1.hold_state == FEEDHOLD_OFF) {
cm1.hold_type = FEEDHOLD_TYPE_ACTIONS;
// cm1.hold_exit = FEEDHOLD_EXIT_STOP; // default exit for ACTIONS is STOP...
if (cm1.motion_state == MOTION_STOP) { // if motion has already stopped declare that you are in a feedhold
if (mp_runtime_is_idle()) { // if motion has already stopped declare that you are in a feedhold
_check_motion_stopped();
cm1.hold_state = FEEDHOLD_HOLD;
cm1.hold_type = FEEDHOLD_TYPE_HOLD; // no actions will be performed, don't try to undo them