@@ -1629,28 +1629,8 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
16291629#endif
16301630
16311631/* *
1632- * Test Heater, Temp Sensor, and Extruder Pins; Sensor Type must also be set.
1632+ * A Sensor ID has to be set for each heater
16331633 */
1634- #if !HAS_HEATER_0
1635- #error "HEATER_0_PIN not defined for this board."
1636- #elif !ANY_PIN(TEMP_0, MAX6675_SS)
1637- #error "TEMP_0_PIN not defined for this board."
1638- #elif ((defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) && !PINS_EXIST(E0_STEP, E0_DIR))
1639- #error "E0_STEP_PIN or E0_DIR_PIN not defined for this board."
1640- #elif ( !(defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) && (!PINS_EXIST(E0_STEP, E0_DIR) || !HAS_E0_ENABLE))
1641- #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
1642- #elif EXTRUDERS && TEMP_SENSOR_0 == 0
1643- #error "TEMP_SENSOR_0 is required with any extruders."
1644- #endif
1645-
1646- // Pins are required for heaters
1647- #if ENABLED(HEATER_0_USES_MAX6675) && !PIN_EXISTS(MAX6675_SS)
1648- #error "MAX6675_SS_PIN (required for TEMP_SENSOR_0) not defined for this board."
1649- #elif HAS_HOTEND && !HAS_TEMP_HOTEND
1650- #error "TEMP_0_PIN (required for TEMP_SENSOR_0) not defined for this board."
1651- #elif EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL) && !HAS_HEATER_1
1652- #error "HEATER_1_PIN not defined for this board."
1653- #endif
16541634
16551635#if HAS_MULTI_HOTEND
16561636 #if ENABLED(HEATER_1_USES_MAX6675) && !PIN_EXISTS(MAX6675_SS2)
@@ -1792,6 +1772,30 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
17921772 #error "TEMP_SENSOR_1 is required with TEMP_SENSOR_1_AS_REDUNDANT."
17931773#endif
17941774
1775+ /* *
1776+ * Test Heater, Temp Sensor, and Extruder Pins
1777+ */
1778+ #if !HAS_HEATER_0
1779+ #error "HEATER_0_PIN not defined for this board."
1780+ #elif !ANY_PIN(TEMP_0, MAX6675_SS)
1781+ #error "TEMP_0_PIN not defined for this board."
1782+ #elif ((defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) && !PINS_EXIST(E0_STEP, E0_DIR))
1783+ #error "E0_STEP_PIN or E0_DIR_PIN not defined for this board."
1784+ #elif ( !(defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) && (!PINS_EXIST(E0_STEP, E0_DIR) || !HAS_E0_ENABLE))
1785+ #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
1786+ #elif EXTRUDERS && TEMP_SENSOR_0 == 0
1787+ #error "TEMP_SENSOR_0 is required if there are any extruders."
1788+ #endif
1789+
1790+ // Pins are required for heaters
1791+ #if ENABLED(HEATER_0_USES_MAX6675) && !PIN_EXISTS(MAX6675_SS)
1792+ #error "MAX6675_SS_PIN (required for TEMP_SENSOR_0) not defined for this board."
1793+ #elif HAS_HOTEND && !HAS_TEMP_HOTEND
1794+ #error "TEMP_0_PIN (required for TEMP_SENSOR_0) not defined for this board."
1795+ #elif EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL) && !HAS_HEATER_1
1796+ #error "HEATER_1_PIN is not defined. TEMP_SENSOR_1 might not be set, or the board (not EEB / EEF?) doesn't define a pin."
1797+ #endif
1798+
17951799/* *
17961800 * Temperature status LEDs
17971801 */
0 commit comments