Correct recovery from FEEDHOLD_SYNC during CYCLE_NONE

This commit is contained in:
Rob Giseburt
2020-01-10 19:25:11 -06:00
parent c0a2806d15
commit 70454fbfb0
+1 -1
View File
@@ -594,7 +594,7 @@ bool mp_is_phat_city_time()
stat_t mp_planner_callback()
{
// Edgge case: If there's no runnable buffer, FEEDHOLD_SYNC will never exit
if (cm->hold_state == FEEDHOLD_SYNC && !mp_has_runnable_buffer(&mp1)) {
if (cm->hold_state == FEEDHOLD_SYNC && cm->cycle_type == CYCLE_NONE) {
cm->hold_state = FEEDHOLD_MOTION_STOPPED;
}
// Test if the planner has transitioned to an IDLE state