✨ BLTOUCH_HS_EXTRA_CLEARANCE (#25655)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@@ -966,6 +966,9 @@
|
||||
*/
|
||||
//#define BLTOUCH_SET_5V_MODE
|
||||
|
||||
// Safety: Enable voltage mode settings in the LCD menu.
|
||||
//#define BLTOUCH_LCD_VOLTAGE_MENU
|
||||
|
||||
/**
|
||||
* Safety: Activate if connecting a probe with an unknown voltage mode.
|
||||
* V3.0: Set a probe into mode selected above at Marlin startup. Required for 5V mode on 3.0
|
||||
@@ -984,8 +987,12 @@
|
||||
*/
|
||||
//#define BLTOUCH_HS_MODE true
|
||||
|
||||
// Safety: Enable voltage mode settings in the LCD menu.
|
||||
//#define BLTOUCH_LCD_VOLTAGE_MENU
|
||||
#if ENABLED(BLTOUCH_HS_MODE)
|
||||
// The probe Z offset (M851 Z) is the height at which the probe triggers.
|
||||
// This must be large enough to keep the probe pin off the bed and prevent
|
||||
// it from snagging on the bed clips.
|
||||
#define BLTOUCH_HS_EXTRA_CLEARANCE 7 // Extra Z Clearance
|
||||
#endif
|
||||
|
||||
#endif // BLTOUCH
|
||||
|
||||
|
@@ -76,7 +76,7 @@ public:
|
||||
static constexpr bool high_speed_mode = false;
|
||||
#endif
|
||||
|
||||
static float z_extra_clearance() { return high_speed_mode ? 7 : 0; }
|
||||
static float z_extra_clearance() { return high_speed_mode ? TERN0(BLTOUCH_HS_MODE, BLTOUCH_HS_EXTRA_CLEARANCE) : 0; }
|
||||
|
||||
// DEPLOY and STOW are wrapped for error handling - these are used by homing and by probing
|
||||
static bool deploy() { return deploy_proc(); }
|
||||
|
@@ -1895,9 +1895,15 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(BLTOUCH_HS_MODE) && BLTOUCH_HS_MODE == 0
|
||||
#error "BLTOUCH_HS_MODE must now be defined as true or false, indicating the default state."
|
||||
#if ENABLED(BLTOUCH_HS_MODE)
|
||||
#if BLTOUCH_HS_MODE == 0
|
||||
#error "BLTOUCH_HS_MODE must now be defined as true or false, indicating the default state."
|
||||
#endif
|
||||
#ifdef BLTOUCH_HS_EXTRA_CLEARANCE
|
||||
static_assert(BLTOUCH_HS_EXTRA_CLEARANCE > 0, "BLTOUCH_HS_MODE requires a positive BLTOUCH_HS_EXTRA_CLEARANCE.");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if BLTOUCH_DELAY < 200
|
||||
#error "BLTOUCH_DELAY less than 200 is unsafe and is not supported."
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user