From 70863fbd55a588688d90cd674c4fe3cdc6818aa9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 3 Mar 2020 15:48:23 -0600 Subject: [PATCH] Avoid name conflict with 'UART' --- Marlin/src/core/drivers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/core/drivers.h b/Marlin/src/core/drivers.h index 52019f4df..2c89d001f 100644 --- a/Marlin/src/core/drivers.h +++ b/Marlin/src/core/drivers.h @@ -133,6 +133,8 @@ #define AXIS_HAS_UART(A) ( AXIS_DRIVER_TYPE(A,TMC2208) \ || AXIS_DRIVER_TYPE(A,TMC2209) ) +#define AXIS_HAS_RXTX AXIS_HAS_UART + #define AXIS_HAS_SW_SERIAL(A) ((AXIS_HAS_UART(A) && !defined(A##_HARDWARE_SERIAL))) #define AXIS_HAS_STALLGUARD(A) ( AXIS_DRIVER_TYPE(A,TMC2130) \ @@ -172,7 +174,7 @@ #define HAS_STALLGUARD ANY_AXIS_HAS(STALLGUARD) #define HAS_SG_RESULT ANY_AXIS_HAS(SG_RESULT) #define HAS_COOLSTEP ANY_AXIS_HAS(COOLSTEP) -#define HAS_TMC_UART ANY_AXIS_HAS(UART) +#define HAS_TMC_UART ANY_AXIS_HAS(RXTX) #define HAS_TMC_SPI ANY_AXIS_HAS(SPI) #define HAS_TMC_SW_SERIAL ANY_AXIS_HAS(SW_SERIAL)