Skip to content

Commit 08f52d6

Browse files
committed
Add conditional definition for SW_SERIAL_UART
Define SW_SERIAL_UART if not already defined. Avoid warnings when configuring ramps board to use Serial3 for TMC2209 drivers in UART mode in Configuration_local.hpp
1 parent aaf061d commit 08f52d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boards/RAMPS/pins_RAMPS.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
#define DEC_DRIVER_ADDRESS 0b00
5252
#endif
5353

54-
#define SW_SERIAL_UART 1
54+
#ifndef SW_SERIAL_UART
55+
#define SW_SERIAL_UART 1
56+
#endif
5557

5658
// DRIVER_TYPE_TMC2209_UART requires 4 digital pins in Arduino pin numbering
5759
#ifndef AZ_STEP_PIN

0 commit comments

Comments
 (0)