Skip to content

Commit 0269106

Browse files
committed
🎨 Dagoma D6 followup
1 parent 95d38a8 commit 0269106

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

Marlin/src/pins/ramps/pins_DAGOMA_D6.h

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,26 @@
9090
#define E1_SERIAL_TX_PIN 12
9191

9292
// Default TMC slave addresses
93-
#ifdef X_SLAVE_ADDRESS
94-
static_assert(X_SLAVE_ADDRESS == 0, "X_SLAVE_ADDRESS must be 0 for BOARD_DAGOMA_D6.");
95-
#else
93+
#ifndef X_SLAVE_ADDRESS
9694
#define X_SLAVE_ADDRESS 0
9795
#endif
98-
#ifdef Y_SLAVE_ADDRESS
99-
static_assert(Y_SLAVE_ADDRESS == 1, "Y_SLAVE_ADDRESS must be 1 for BOARD_DAGOMA_D6.");
100-
#else
96+
#ifndef Y_SLAVE_ADDRESS
10197
#define Y_SLAVE_ADDRESS 1
10298
#endif
103-
#ifdef Z_SLAVE_ADDRESS
104-
static_assert(Z_SLAVE_ADDRESS == 2, "Z_SLAVE_ADDRESS must be 2 for BOARD_DAGOMA_D6.");
105-
#else
99+
#ifndef Z_SLAVE_ADDRESS
106100
#define Z_SLAVE_ADDRESS 2
107101
#endif
108-
#ifdef E0_SLAVE_ADDRESS
109-
static_assert(E0_SLAVE_ADDRESS == 3, "E0_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6.");
110-
#else
102+
#ifndef E0_SLAVE_ADDRESS
111103
#define E0_SLAVE_ADDRESS 3
112104
#endif
113-
#ifdef E1_SLAVE_ADDRESS
114-
static_assert(E1_SLAVE_ADDRESS == 3, "E1_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6.");
115-
#else
105+
#ifndef E1_SLAVE_ADDRESS
116106
#define E1_SLAVE_ADDRESS 3
117107
#endif
108+
static_assert(X_SLAVE_ADDRESS == 0, "X_SLAVE_ADDRESS must be 0 for BOARD_DAGOMA_D6.");
109+
static_assert(Y_SLAVE_ADDRESS == 1, "Y_SLAVE_ADDRESS must be 1 for BOARD_DAGOMA_D6.");
110+
static_assert(Z_SLAVE_ADDRESS == 2, "Z_SLAVE_ADDRESS must be 2 for BOARD_DAGOMA_D6.");
111+
static_assert(E0_SLAVE_ADDRESS == 3, "E0_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6.");
112+
static_assert(E1_SLAVE_ADDRESS == 3, "E1_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6.");
118113

119114
#endif
120115

0 commit comments

Comments
 (0)