|
@@ -1408,10 +1408,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
1408
|
1408
|
#endif
|
1409
|
1409
|
|
1410
|
1410
|
/**
|
1411
|
|
- * Test case light not using the same pin as the fan
|
|
1411
|
+ * Case Light requirements
|
1412
|
1412
|
*/
|
1413
|
|
-#if ENABLED(CASE_LIGHT_ENABLE) && CASE_LIGHT_PIN == FAN_PIN
|
1414
|
|
- #error "You cannot set CASE_LIGHT_PIN equal to FAN_PIN."
|
|
1413
|
+#if ENABLED(CASE_LIGHT_ENABLE)
|
|
1414
|
+ #if !PIN_EXISTS(CASE_LIGHT)
|
|
1415
|
+ #error "CASE_LIGHT_ENABLE requires CASE_LIGHT_PIN to be defined."
|
|
1416
|
+ #elif CASE_LIGHT_PIN == FAN_PIN
|
|
1417
|
+ #error "CASE_LIGHT_PIN conflicts with FAN_PIN. Resolve before continuing."
|
|
1418
|
+ #endif
|
1415
|
1419
|
#endif
|
1416
|
1420
|
|
1417
|
1421
|
/**
|