Browse Source

Fix TMC compile error (#12965)

pull/1/head
Ludy 6 years ago
committed by Scott Lahteine
parent
commit
dc65d96aca
  1. 4
      Marlin/src/module/stepper_indirection.h

4
Marlin/src/module/stepper_indirection.h

@ -62,7 +62,9 @@
#error "Update TMCStepper library to 0.2.2 or newer." #error "Update TMCStepper library to 0.2.2 or newer."
#endif #endif
#define __TMC_CLASS(MODEL, A, I) TMCMarlin<TMC##MODEL##Stepper, A, I> #define ____TMC_CLASS(MODEL, A, I) TMCMarlin<TMC##MODEL##Stepper, A, I>
#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(MODEL, L) __TMC_CLASS(MODEL, L)
#define TMC_CLASS(ST) _TMC_CLASS(ST##_DRIVER_TYPE, TMC_##ST##_LABEL) #define TMC_CLASS(ST) _TMC_CLASS(ST##_DRIVER_TYPE, TMC_##ST##_LABEL)

Loading…
Cancel
Save