Update, correct sanity-checks for up to 6 extruders (#12333)

This commit is contained in:
Ludy 2018-11-05 01:36:45 +01:00 committed by Scott Lahteine
parent 32880ff42a
commit c10edb0998

View File

@ -611,8 +611,8 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
*/ */
#if EXTRUDERS > 1 #if EXTRUDERS > 1
#if EXTRUDERS > 5 #if EXTRUDERS > 6
#error "Marlin supports a maximum of 5 EXTRUDERS." #error "Marlin supports a maximum of 6 EXTRUDERS."
#endif #endif
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT) #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
@ -1303,7 +1303,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
#endif #endif
#if HOTENDS > 4 #if HOTENDS > 4
#if TEMP_SENSOR_4 == 0 #if TEMP_SENSOR_4 == 0
#error "TEMP_SENSOR_4 is required with 5 HOTENDS." #error "TEMP_SENSOR_4 is required with 5 or more HOTENDS."
#elif !HAS_HEATER_4 #elif !HAS_HEATER_4
#error "HEATER_4_PIN not defined for this board." #error "HEATER_4_PIN not defined for this board."
#elif !PIN_EXISTS(TEMP_4) #elif !PIN_EXISTS(TEMP_4)
@ -1311,7 +1311,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
#endif #endif
#if HOTENDS > 5 #if HOTENDS > 5
#if TEMP_SENSOR_5 == 0 #if TEMP_SENSOR_5 == 0
#error "TEMP_SENSOR_5 is required with 5 HOTENDS." #error "TEMP_SENSOR_5 is required with 6 HOTENDS."
#elif !HAS_HEATER_5 #elif !HAS_HEATER_5
#error "HEATER_5_PIN not defined for this board." #error "HEATER_5_PIN not defined for this board."
#elif !PIN_EXISTS(TEMP_5) #elif !PIN_EXISTS(TEMP_5)
@ -1323,14 +1323,14 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
#elif TEMP_SENSOR_4 != 0 #elif TEMP_SENSOR_4 != 0
#error "TEMP_SENSOR_4 shouldn't be set with only 4 HOTENDS." #error "TEMP_SENSOR_4 shouldn't be set with only 4 HOTENDS."
#elif TEMP_SENSOR_5 != 0 #elif TEMP_SENSOR_5 != 0
#error "TEMP_SENSOR_5 shouldn't be set with only 5 HOTENDS." #error "TEMP_SENSOR_5 shouldn't be set with only 4 HOTENDS."
#endif #endif
#elif TEMP_SENSOR_3 != 0 #elif TEMP_SENSOR_3 != 0
#error "TEMP_SENSOR_3 shouldn't be set with only 3 HOTENDS." #error "TEMP_SENSOR_3 shouldn't be set with only 3 HOTENDS."
#elif TEMP_SENSOR_4 != 0 #elif TEMP_SENSOR_4 != 0
#error "TEMP_SENSOR_4 shouldn't be set with only 3 HOTENDS." #error "TEMP_SENSOR_4 shouldn't be set with only 3 HOTENDS."
#elif TEMP_SENSOR_5 != 0 #elif TEMP_SENSOR_5 != 0
#error "TEMP_SENSOR_5 shouldn't be set with only 4 HOTENDS." #error "TEMP_SENSOR_5 shouldn't be set with only 3 HOTENDS."
#endif #endif
#elif TEMP_SENSOR_2 != 0 #elif TEMP_SENSOR_2 != 0
#error "TEMP_SENSOR_2 shouldn't be set with only 2 HOTENDS." #error "TEMP_SENSOR_2 shouldn't be set with only 2 HOTENDS."