|
|
@ -71,19 +71,17 @@ bool BLTouch::set_deployed(const bool in_deploy) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BLTOUCH_V3)
|
|
|
|
#if ENABLED(BLTOUCH_V3)
|
|
|
|
#if ENABLED(BLTOUCH_FORCE_5V_MODE)
|
|
|
|
#if EITHER(BLTOUCH_FORCE_5V_MODE, ENDSTOPPULLUPS) \
|
|
|
|
set_5V_mode();
|
|
|
|
|| ALL(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, ENDSTOPPULLUP_ZMIN) \
|
|
|
|
#elif ENABLED(BLTOUCH_FORCE_OPEN_DRAIN_MODE)
|
|
|
|
|| (USES_Z_MIN_PROBE_ENDSTOP && ENABLED(ENDSTOPPULLUP_ZMIN_PROBE))
|
|
|
|
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
|
|
|
|
set_5V_mode(); // Assume 5V DC logic level if endstop pullup resistors are enabled
|
|
|
|
#else
|
|
|
|
#elif true || ENABLED(BLTOUCH_FORCE_OPEN_DRAIN_MODE)
|
|
|
|
set_OD_mode();
|
|
|
|
set_OD_mode();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
if (in_deploy) {
|
|
|
|
if (in_deploy) {
|
|
|
|
_deploy();
|
|
|
|
_deploy();
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BLTOUCH_V3)
|
|
|
|
#if ENABLED(BLTOUCH_V3)
|
|
|
|
set_SW_mode();
|
|
|
|
set_SW_mode();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|