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)