From a29f518e887082c53850f0aaf361eeb7d4fba680 Mon Sep 17 00:00:00 2001 From: odaki Date: Wed, 16 Oct 2019 22:33:28 +0900 Subject: [PATCH] suppress warning about unused variable at stepper.cpp --- Grbl_Esp32/stepper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;