|
|
|
@ -111,7 +111,7 @@
|
|
|
|
|
#elif defined(FILAMENT_SENSOR)
|
|
|
|
|
#error "FILAMENT_SENSOR is now FILAMENT_WIDTH_SENSOR. Please update your configuration."
|
|
|
|
|
#elif defined(ENDSTOPPULLUP_FIL_RUNOUT)
|
|
|
|
|
#error "ENDSTOPPULLUP_FIL_RUNOUT is now FIL_RUNOUT_PULLUP. Please update your configuration."
|
|
|
|
|
#error "ENDSTOPPULLUP_FIL_RUNOUT is now FIL_RUNOUT_PULL. Please update your configuration."
|
|
|
|
|
#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
|
|
|
|
|
#error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
|
|
|
|
|
#elif defined(LANGUAGE_INCLUDE)
|
|
|
|
@ -660,8 +660,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|
|
|
|
|
|
|
|
|
#if BOTH(ENDSTOPPULLUPS, ENDSTOPPULLDOWNS)
|
|
|
|
|
#error "Enable only one of ENDSTOPPULLUPS or ENDSTOPPULLDOWNS."
|
|
|
|
|
#elif BOTH(FIL_RUNOUT_PULLUP, FIL_RUNOUT_PULLDOWN)
|
|
|
|
|
#error "Enable only one of FIL_RUNOUT_PULLUP or FIL_RUNOUT_PULLDOWN."
|
|
|
|
|
#elif BOTH(ENDSTOPPULLUP_XMAX, ENDSTOPPULLDOWN_XMAX)
|
|
|
|
|
#error "Enable only one of ENDSTOPPULLUP_X_MAX or ENDSTOPPULLDOWN_X_MAX."
|
|
|
|
|
#elif BOTH(ENDSTOPPULLUP_YMAX, ENDSTOPPULLDOWN_YMAX)
|
|
|
|
@ -814,18 +812,20 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR requires FIL_RUNOUT_PIN."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > E_STEPPERS
|
|
|
|
|
#error "NUM_RUNOUT_SENSORS cannot exceed the number of E steppers."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > 1 && !PIN_EXISTS(FIL_RUNOUT2)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 1 requires FIL_RUNOUT2_PIN."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > 2 && !PIN_EXISTS(FIL_RUNOUT3)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 2 requires FIL_RUNOUT3_PIN."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > 3 && !PIN_EXISTS(FIL_RUNOUT4)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 3 requires FIL_RUNOUT4_PIN."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > 4 && !PIN_EXISTS(FIL_RUNOUT5)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS > 5 && !PIN_EXISTS(FIL_RUNOUT6)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 5 requires FIL_RUNOUT6_PIN."
|
|
|
|
|
#elif NONE(SDSUPPORT, PRINTJOB_TIMER_AUTOSTART)
|
|
|
|
|
#error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 2 && !PIN_EXISTS(FIL_RUNOUT2)
|
|
|
|
|
#error "FIL_RUNOUT2_PIN is required with NUM_RUNOUT_SENSORS >= 2."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 3 && !PIN_EXISTS(FIL_RUNOUT3)
|
|
|
|
|
#error "FIL_RUNOUT3_PIN is required with NUM_RUNOUT_SENSORS >= 3."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 4 && !PIN_EXISTS(FIL_RUNOUT4)
|
|
|
|
|
#error "FIL_RUNOUT4_PIN is required with NUM_RUNOUT_SENSORS >= 4."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 5 && !PIN_EXISTS(FIL_RUNOUT5)
|
|
|
|
|
#error "FIL_RUNOUT5_PIN is required with NUM_RUNOUT_SENSORS >= 5."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 6 && !PIN_EXISTS(FIL_RUNOUT6)
|
|
|
|
|
#error "FIL_RUNOUT6_PIN is required with NUM_RUNOUT_SENSORS >= 6."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 7 && !PIN_EXISTS(FIL_RUNOUT7)
|
|
|
|
|
#error "FIL_RUNOUT7_PIN is required with NUM_RUNOUT_SENSORS >= 7."
|
|
|
|
|
#elif NUM_RUNOUT_SENSORS >= 8 && !PIN_EXISTS(FIL_RUNOUT8)
|
|
|
|
|
#error "FIL_RUNOUT8_PIN is required with NUM_RUNOUT_SENSORS >= 8."
|
|
|
|
|
#elif FILAMENT_RUNOUT_DISTANCE_MM < 0
|
|
|
|
|
#error "FILAMENT_RUNOUT_DISTANCE_MM must be greater than or equal to zero."
|
|
|
|
|
#elif DISABLED(ADVANCED_PAUSE_FEATURE)
|
|
|
|
|