Skip to content

Commit

Permalink
🔧 Sanity-checks for PULLDOWN, SINGLENOZZLE
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 23, 2022
1 parent c47c52c commit 58fcaeb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#endif

#if !defined(TARGET_LPC1768) && ANY( \
ENDSTOPPULLDOWNS, \
ENDSTOPPULLDOWN_XMAX, ENDSTOPPULLDOWN_YMAX, \
ENDSTOPPULLDOWN_ZMAX, ENDSTOPPULLDOWN_XMIN, \
ENDSTOPPULLDOWN_YMIN, ENDSTOPPULLDOWN_ZMIN \
)
ENDSTOPPULLDOWNS, ENDSTOPPULLDOWN_ZMIN_PROBE, \
ENDSTOPPULLDOWN_XMAX, ENDSTOPPULLDOWN_YMAX, ENDSTOPPULLDOWN_ZMAX, \
ENDSTOPPULLDOWN_XMIN, ENDSTOPPULLDOWN_YMIN, ENDSTOPPULLDOWN_ZMIN, \
FIL_RUNOUT_PULLDOWN, \
FIL_RUNOUT1_PULLDOWN, FIL_RUNOUT2_PULLDOWN, FIL_RUNOUT3_PULLDOWN, FIL_RUNOUT4_PULLDOWN, \
FIL_RUNOUT5_PULLDOWN, FIL_RUNOUT6_PULLDOWN, FIL_RUNOUT7_PULLDOWN, FIL_RUNOUT8_PULLDOWN, \
POWER_LOSS_PULLDOWN, CALIBRATION_PIN_PULLDOWN \
)
#error "PULLDOWN pin mode is not available on the selected board."
#endif

Expand Down Expand Up @@ -1146,6 +1149,9 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#elif ENABLED(SINGLENOZZLE)

#error "SINGLENOZZLE requires 2 or more EXTRUDERS."
#if ENABLED(PID_PARAMS_PER_HOTEND)
#error "PID_PARAMS_PER_HOTEND must be disabled when using any SINGLENOZZLE extruder."
#endif

#endif

Expand Down

0 comments on commit 58fcaeb

Please sign in to comment.