From dc65d96aca9b53001ea797152a1d6f2cffafe3cd Mon Sep 17 00:00:00 2001 From: Ludy Date: Mon, 21 Jan 2019 06:47:28 +0100 Subject: [PATCH] Fix TMC compile error (#12965) --- Marlin/src/module/stepper_indirection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/stepper_indirection.h b/Marlin/src/module/stepper_indirection.h index 08559eccc..6c073c75b 100644 --- a/Marlin/src/module/stepper_indirection.h +++ b/Marlin/src/module/stepper_indirection.h @@ -62,7 +62,9 @@ #error "Update TMCStepper library to 0.2.2 or newer." #endif - #define __TMC_CLASS(MODEL, A, I) TMCMarlin + #define ____TMC_CLASS(MODEL, A, I) TMCMarlin + #define ___TMC_CLASS(MODEL, A, I) ____TMC_CLASS(MODEL, A, I) + #define __TMC_CLASS(MODEL, A, I) ___TMC_CLASS(_##MODEL, A, I) #define _TMC_CLASS(MODEL, L) __TMC_CLASS(MODEL, L) #define TMC_CLASS(ST) _TMC_CLASS(ST##_DRIVER_TYPE, TMC_##ST##_LABEL)