From 70454fbfb0c8af9d9a9760d3da2935f1c8e43e91 Mon Sep 17 00:00:00 2001 From: Rob Giseburt Date: Wed, 13 Nov 2019 22:31:29 -0600 Subject: [PATCH] Correct recovery from FEEDHOLD_SYNC during CYCLE_NONE --- g2core/planner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g2core/planner.cpp b/g2core/planner.cpp index 3ebc92f2..8feb4c21 100644 --- a/g2core/planner.cpp +++ b/g2core/planner.cpp @@ -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