mirror of
https://github.com/synthetos/g2.git
synced 2026-09-23 04:03:47 +08:00
Correct recovery from FEEDHOLD_SYNC during CYCLE_NONE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user