From cd2cb121754f84d01005f9d1b3525e33d3c3167e Mon Sep 17 00:00:00 2001 From: bdring Date: Wed, 1 May 2019 09:25:04 -0500 Subject: [PATCH] Some RMT code needed #ifdef USE_RMT_STEP around it. - Machine profiles that have RMT channels defined would not compile when not using RMT --- Grbl_Esp32/stepper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Grbl_Esp32/stepper.cpp b/Grbl_Esp32/stepper.cpp index 9f8c91f9..9d3d20b9 100644 --- a/Grbl_Esp32/stepper.cpp +++ b/Grbl_Esp32/stepper.cpp @@ -434,6 +434,7 @@ void stepper_init() } +#ifdef USE_RMT_STEPS void initRMT() { rmt_item32_t rmtItem[2]; @@ -517,6 +518,7 @@ void initRMT() } +#endif // enabled. Startup init and limits call this function but shouldn't start the cycle. void st_wake_up() @@ -652,7 +654,7 @@ void set_stepper_pins_on(uint8_t onMask) } #endif - +#ifdef USE_RMT_STEPS // Set stepper pulse output pins inline IRAM_ATTR static void stepperRMT_Outputs() { @@ -701,6 +703,7 @@ inline IRAM_ATTR static void stepperRMT_Outputs() } #endif } +#endif // Stepper shutdown void st_go_idle()