From f0217205cc9f158ff7271a1792ceff3bba929113 Mon Sep 17 00:00:00 2001 From: Rob Giseburt Date: Wed, 15 Feb 2017 09:50:39 -0600 Subject: [PATCH] Fix for MOTOR_POWERED_IN_CYCLE motors disabling during long M101 waits --- g2core/stepper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/g2core/stepper.cpp b/g2core/stepper.cpp index ea654414..5c2a6032 100644 --- a/g2core/stepper.cpp +++ b/g2core/stepper.cpp @@ -219,7 +219,11 @@ stat_t st_motor_power_callback() // called by controller } bool have_actually_stopped = false; - if ((!st_runtime_isbusy()) && (st_pre.buffer_state != PREP_BUFFER_OWNED_BY_LOADER)) { // if there are no moves to load... + if ((!st_runtime_isbusy()) && + (st_pre.buffer_state != PREP_BUFFER_OWNED_BY_LOADER) && + (cm_get_cycle_state() == CYCLE_OFF) + ) + { // if there are no moves to load... have_actually_stopped = true; }