|
@@ -2170,13 +2170,13 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
2170
|
2170
|
*/
|
2171
|
2171
|
#if HAS_AUTO_FAN
|
2172
|
2172
|
#if HAS_FAN0
|
2173
|
|
- #if E0_AUTO_FAN_PIN == FAN_PIN
|
|
2173
|
+ #if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN_PIN
|
2174
|
2174
|
#error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."
|
2175
|
|
- #elif E1_AUTO_FAN_PIN == FAN_PIN
|
|
2175
|
+ #elif PIN_EXISTS(E1_AUTO_FAN) && E1_AUTO_FAN_PIN == FAN_PIN
|
2176
|
2176
|
#error "You cannot set E1_AUTO_FAN_PIN equal to FAN_PIN."
|
2177
|
|
- #elif E2_AUTO_FAN_PIN == FAN_PIN
|
|
2177
|
+ #elif PIN_EXISTS(E2_AUTO_FAN) && E2_AUTO_FAN_PIN == FAN_PIN
|
2178
|
2178
|
#error "You cannot set E2_AUTO_FAN_PIN equal to FAN_PIN."
|
2179
|
|
- #elif E3_AUTO_FAN_PIN == FAN_PIN
|
|
2179
|
+ #elif PIN_EXISTS(E3_AUTO_FAN) && E3_AUTO_FAN_PIN == FAN_PIN
|
2180
|
2180
|
#error "You cannot set E3_AUTO_FAN_PIN equal to FAN_PIN."
|
2181
|
2181
|
#endif
|
2182
|
2182
|
#endif
|