Fix for MOTOR_POWERED_IN_CYCLE motors disabling during long M101 waits

This commit is contained in:
Rob Giseburt
2017-02-23 09:20:38 -06:00
parent 09532eef61
commit f0217205cc
+5 -1
View File
@@ -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;
}