✨ BLTouch High Speed mode runtime configuration (#22916)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c1dba3d028
commit
2893048e29
@@ -23,10 +23,6 @@
|
||||
|
||||
#include "../inc/MarlinConfigPre.h"
|
||||
|
||||
#if DISABLED(BLTOUCH_HS_MODE)
|
||||
#define BLTOUCH_SLOW_MODE 1
|
||||
#endif
|
||||
|
||||
// BLTouch commands are sent as servo angles
|
||||
typedef unsigned char BLTCommand;
|
||||
|
||||
@@ -70,8 +66,17 @@ typedef unsigned char BLTCommand;
|
||||
|
||||
class BLTouch {
|
||||
public:
|
||||
|
||||
static void init(const bool set_voltage=false);
|
||||
static bool last_written_mode; // Initialized by settings.load, 0 = Open Drain; 1 = 5V Drain
|
||||
static bool od_5v_mode; // Initialized by settings.load, 0 = Open Drain; 1 = 5V Drain
|
||||
|
||||
#ifdef BLTOUCH_HS_MODE
|
||||
static bool high_speed_mode; // Initialized by settings.load, 0 = Low Speed; 1 = High Speed
|
||||
#else
|
||||
static constexpr bool high_speed_mode = false;
|
||||
#endif
|
||||
|
||||
static inline float z_extra_clearance() { return high_speed_mode ? 7 : 0; }
|
||||
|
||||
// DEPLOY and STOW are wrapped for error handling - these are used by homing and by probing
|
||||
static bool deploy() { return deploy_proc(); }
|
||||
|
||||
Reference in New Issue
Block a user