From 9c97d44b023d460b42144a9fe0af454a03e3426d Mon Sep 17 00:00:00 2001 From: Anders Sandstrom Date: Fri, 21 Jan 2022 08:20:22 +0100 Subject: [PATCH] WIP --- grbl/grbl_stepper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grbl/grbl_stepper.c b/grbl/grbl_stepper.c index 04677f0..057008a 100644 --- a/grbl/grbl_stepper.c +++ b/grbl/grbl_stepper.c @@ -371,7 +371,7 @@ void ecmc_grbl_main_rt_thread() { //printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__); - if (busy) { return; } // The busy-flag is used to avoid reentering this interrupt + if (busy || !stepperInterruptEnable) { return; } // The busy-flag is used to avoid reentering this interrupt // Set the direction pins a couple of nanoseconds before we step the steppers //DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | (st.dir_outbits & DIRECTION_MASK);