@@ -1829,19 +1829,25 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
1829
1829
#undef GOOD_AXIS_PINS
1830
1830
1831
1831
/* *
1832
- * Make sure auto fan pins don't conflict with the fan pin
1832
+ * Make sure auto fan pins don't conflict with the first fan pin
1833
1833
*/
1834
1834
#if HAS_AUTO_FAN
1835
- #if HAS_FAN0
1836
- #if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN0_PIN
1837
- #error "You cannot set E0_AUTO_FAN_PIN equal to FAN0_PIN."
1838
- #elif PIN_EXISTS(E1_AUTO_FAN) && E1_AUTO_FAN_PIN == FAN0_PIN
1839
- #error "You cannot set E1_AUTO_FAN_PIN equal to FAN0_PIN."
1840
- #elif PIN_EXISTS(E2_AUTO_FAN) && E2_AUTO_FAN_PIN == FAN0_PIN
1841
- #error "You cannot set E2_AUTO_FAN_PIN equal to FAN0_PIN."
1842
- #elif PIN_EXISTS(E3_AUTO_FAN) && E3_AUTO_FAN_PIN == FAN0_PIN
1843
- #error "You cannot set E3_AUTO_FAN_PIN equal to FAN0_PIN."
1844
- #endif
1835
+ #if PINS_EXIST(E0_AUTO_FAN, FAN0) && E0_AUTO_FAN_PIN == FAN0_PIN
1836
+ #error "You cannot set E0_AUTO_FAN_PIN equal to FAN0_PIN."
1837
+ #elif PINS_EXIST(E1_AUTO_FAN, FAN0) && E1_AUTO_FAN_PIN == FAN0_PIN
1838
+ #error "You cannot set E1_AUTO_FAN_PIN equal to FAN0_PIN."
1839
+ #elif PINS_EXIST(E2_AUTO_FAN, FAN0) && E2_AUTO_FAN_PIN == FAN0_PIN
1840
+ #error "You cannot set E2_AUTO_FAN_PIN equal to FAN0_PIN."
1841
+ #elif PINS_EXIST(E3_AUTO_FAN, FAN0) && E3_AUTO_FAN_PIN == FAN0_PIN
1842
+ #error "You cannot set E3_AUTO_FAN_PIN equal to FAN0_PIN."
1843
+ #elif PINS_EXIST(E4_AUTO_FAN, FAN0) && E4_AUTO_FAN_PIN == FAN0_PIN
1844
+ #error "You cannot set E4_AUTO_FAN_PIN equal to FAN0_PIN."
1845
+ #elif PINS_EXIST(E5_AUTO_FAN, FAN0) && E5_AUTO_FAN_PIN == FAN0_PIN
1846
+ #error "You cannot set E5_AUTO_FAN_PIN equal to FAN0_PIN."
1847
+ #elif PINS_EXIST(E6_AUTO_FAN, FAN0) && E6_AUTO_FAN_PIN == FAN0_PIN
1848
+ #error "You cannot set E6_AUTO_FAN_PIN equal to FAN0_PIN."
1849
+ #elif PINS_EXIST(E7_AUTO_FAN, FAN0) && E7_AUTO_FAN_PIN == FAN0_PIN
1850
+ #error "You cannot set E7_AUTO_FAN_PIN equal to FAN0_PIN."
1845
1851
#endif
1846
1852
#endif
1847
1853
0 commit comments