Less timely comment, tweak conditions
This commit is contained in:
@ -818,9 +818,10 @@
|
||||
#if ENABLED(BLTOUCH)
|
||||
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
|
||||
|
||||
/** BLTouch V3.0 and newer smart series
|
||||
* Functions with most genuine sensors, however clones have been reporting issues with the new code.
|
||||
* If the pin trigger is not detected, first try swapping black and white wires then toggle this.
|
||||
/**
|
||||
* BLTouch V3.0 and newer smart series
|
||||
* For genuine BLTouch 3.0 sensors. Clones may be confused by 3.0 command angles. YMMV.
|
||||
* If the pin trigger is not detected, first try swapping the black and white wires then toggle this.
|
||||
*/
|
||||
//#define BLTOUCH_V3
|
||||
#if ENABLED(BLTOUCH_V3)
|
||||
|
@ -71,19 +71,17 @@ bool BLTouch::set_deployed(const bool in_deploy) {
|
||||
}
|
||||
|
||||
#if ENABLED(BLTOUCH_V3)
|
||||
#if ENABLED(BLTOUCH_FORCE_5V_MODE)
|
||||
set_5V_mode();
|
||||
#elif ENABLED(BLTOUCH_FORCE_OPEN_DRAIN_MODE)
|
||||
set_OD_mode();
|
||||
#elif ENABLED(ENDSTOPPULLUPS) || ALL(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, ENDSTOPPULLUP_ZMIN) || (USES_Z_MIN_PROBE_ENDSTOP && ENABLED(ENDSTOPPULLUP_ZMIN_PROBE))
|
||||
set_5V_mode(); // Assume 5V DC logic level if endstop pullup resistors are enabled
|
||||
#else
|
||||
#if EITHER(BLTOUCH_FORCE_5V_MODE, ENDSTOPPULLUPS) \
|
||||
|| ALL(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, ENDSTOPPULLUP_ZMIN) \
|
||||
|| (USES_Z_MIN_PROBE_ENDSTOP && ENABLED(ENDSTOPPULLUP_ZMIN_PROBE))
|
||||
set_5V_mode(); // Assume 5V DC logic level if endstop pullup resistors are enabled
|
||||
#elif true || ENABLED(BLTOUCH_FORCE_OPEN_DRAIN_MODE)
|
||||
set_OD_mode();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (in_deploy) {
|
||||
_deploy();
|
||||
|
||||
#if ENABLED(BLTOUCH_V3)
|
||||
set_SW_mode();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user