Skip to content

Commit 0dd4434

Browse files
thisiskeithbellensp
andcommitted
Patch AUTO_FAN_PIN sanity check
Co-authored-by: ellensp <[email protected]>
1 parent 5a2cc41 commit 0dd4434

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Marlin/src/inc/SanityCheck.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,13 +2170,13 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
21702170
*/
21712171
#if HAS_AUTO_FAN
21722172
#if HAS_FAN0
2173-
#if E0_AUTO_FAN_PIN == FAN_PIN
2173+
#if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN_PIN
21742174
#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
21762176
#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
21782178
#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
21802180
#error "You cannot set E3_AUTO_FAN_PIN equal to FAN_PIN."
21812181
#endif
21822182
#endif

0 commit comments

Comments
 (0)