mirror of
https://github.com/synthetos/g2.git
synced 2026-09-22 11:29:24 +08:00
Fix for MOTOR_POWERED_IN_CYCLE motors disabling during long M101 waits
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user