Minor commit

This commit is contained in:
Alden Hart
2017-03-17 13:06:18 -04:00
parent d29150b50b
commit 76924d8e80
2 changed files with 3 additions and 5 deletions
-2
View File
@@ -1031,12 +1031,10 @@ static stat_t _exec_aline_feedhold(mpBuf_t *bf)
if (cm->hold_state == FEEDHOLD_MOTION_STOPPING) {
if (mp_runtime_is_idle()) { // wait for steppers to actually finish
mp_zero_segment_velocity(); // finalize velocity for reporting purposes
// cm_set_motion_state(MOTION_STOP); // we just stopped it +++++ test this
cm->hold_state = FEEDHOLD_MOTION_STOPPED;
// If in a p2 hold, exit the p2 hold immediately set up a flush of the p2 planner queue
if (cm == &cm2) {
// cm->hold_type = FEEDHOLD_TYPE_SYNC; // force to a sync hold
cm->hold_state = FEEDHOLD_HOLD;
return (STAT_OK); // will end this exec_aline() with no more movement
}