Skip to content

Commit

Permalink
change idle detection
Browse files Browse the repository at this point in the history
  • Loading branch information
krejcipetr committed Nov 2, 2022
1 parent 6adf24f commit 6a48bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grbl/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void protocol_main_loop()
// idle lock is off?
if (settings.stepper_idle_lock_time == 255) {
// Will I do a block in next loop?
if (plan_get_current_block() == NULL) {
if (sys.state == STATE_IDLE) {
// Last waiting loop. so disable stepper
if (stepper_sleep == 1) {
st_disable_set(true);
Expand Down

0 comments on commit 6a48bfe

Please sign in to comment.