|
|
@ -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)) |
|
|
|
#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
|
|
|
|
#else |
|
|
|
#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 |
|
|
|