Skip to content

Commit 6a48bfe

Browse files
committed
change idle detection
1 parent 6adf24f commit 6a48bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grbl/protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void protocol_main_loop()
173173
// idle lock is off?
174174
if (settings.stepper_idle_lock_time == 255) {
175175
// Will I do a block in next loop?
176-
if (plan_get_current_block() == NULL) {
176+
if (sys.state == STATE_IDLE) {
177177
// Last waiting loop. so disable stepper
178178
if (stepper_sleep == 1) {
179179
st_disable_set(true);

0 commit comments

Comments
 (0)