diff --git a/Grbl_Esp32/stepper.cpp b/Grbl_Esp32/stepper.cpp index 54bc013e..fe68ae1c 100644 --- a/Grbl_Esp32/stepper.cpp +++ b/Grbl_Esp32/stepper.cpp @@ -216,8 +216,9 @@ static st_prep_t prep; // with probing and homing cycles that require true real-time positions. void IRAM_ATTR onStepperDriverTimer(void *para) // ISR It is time to take a step ======================================================================================= { - uint64_t step_pulse_off_time; - + #ifndef USE_RMT_STEPS + uint64_t step_pulse_off_time; + #endif //const int timer_idx = (int)para; // get the timer index TIMERG0.int_clr_timers.t0 = 1;