Add support for SOLENOID_PROBE
This commit is contained in:
@@ -172,6 +172,8 @@
|
||||
#error "EXTRUDER_[0123]_AUTO_FAN_PIN is now E[0123]_AUTO_FAN_PIN. Please update your Configuration_adv.h."
|
||||
#elif defined(min_software_endstops) || defined(max_software_endstops)
|
||||
#error "(min|max)_software_endstops are now (MIN|MAX)_SOFTWARE_ENDSTOPS. Please update your configuration."
|
||||
#elif ENABLED(Z_PROBE_SLED) && defined(SLED_PIN)
|
||||
#error "Replace SLED_PIN with SOL1_PIN (applies to both Z_PROBE_SLED and SOLENOID_PROBE)."
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -459,6 +461,9 @@ static_assert(1 >= 0
|
||||
#if ENABLED(Z_PROBE_SLED)
|
||||
+ 1
|
||||
#endif
|
||||
#if ENABLED(SOLENOID_PROBE)
|
||||
+ 1
|
||||
#endif
|
||||
, "Please enable only one probe: PROBE_MANUALLY, FIX_MOUNTED_PROBE, Z Servo, BLTOUCH, Z_PROBE_ALLEN_KEY, or Z_PROBE_SLED."
|
||||
);
|
||||
|
||||
@@ -472,6 +477,17 @@ static_assert(1 >= 0
|
||||
#error "You cannot use Z_PROBE_SLED with DELTA."
|
||||
#endif
|
||||
|
||||
/**
|
||||
* SOLENOID_PROBE requirements
|
||||
*/
|
||||
#if ENABLED(SOLENOID_PROBE)
|
||||
#if ENABLED(EXT_SOLENOID)
|
||||
#error "SOLENOID_PROBE is incompatible with EXT_SOLENOID."
|
||||
#elif !HAS_SOLENOID_1
|
||||
#error "SOLENOID_PROBE requires SOL1_PIN. It can be added to your Configuration.h."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* NUM_SERVOS is required for a Z servo probe
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user