|
|
@ -500,18 +500,22 @@ |
|
|
|
#define HAS_Z_SERVO_PROBE (defined(Z_PROBE_SERVO_NR) && Z_PROBE_SERVO_NR >= 0) |
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a flag for any enabled probe |
|
|
|
* Set flags for enabled probes |
|
|
|
*/ |
|
|
|
#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_PROBE || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE)) |
|
|
|
#define HAS_BED_PROBE (ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_PROBE || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE)) |
|
|
|
#define PROBE_SELECTED (HAS_BED_PROBE || ENABLED(PROBE_MANUALLY)) |
|
|
|
|
|
|
|
/**
|
|
|
|
* Clear probe pin settings when no probe is selected |
|
|
|
*/ |
|
|
|
#if !PROBE_SELECTED || ENABLED(PROBE_MANUALLY) |
|
|
|
#if !HAS_BED_PROBE |
|
|
|
// Clear probe pin settings when no probe is selected
|
|
|
|
#undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN |
|
|
|
#undef Z_MIN_PROBE_ENDSTOP |
|
|
|
#elif ENABLED(Z_PROBE_ALLEN_KEY) |
|
|
|
// Extra test for Allen Key Probe
|
|
|
|
#define PROBE_IS_TRIGGERED_WHEN_STOWED_TEST |
|
|
|
#endif |
|
|
|
|
|
|
|
#define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)) |
|
|
|
|
|
|
|
#define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS)) |
|
|
|
#define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER)) |
|
|
|
#define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)) |
|
|
|