Followup to BLTouch (#13422)

This commit is contained in:
InsanityAutomation
2019-03-18 17:31:11 -04:00
committed by Scott Lahteine
parent 3fb8489ae3
commit 5b2c37d6c1
10 changed files with 56 additions and 49 deletions

View File

@@ -69,19 +69,19 @@ bool BLTouch::set_deployed(const bool in_deploy) {
}
}
#if ENABLED(BLTOUCH_V3)
#if ENABLED(BLTOUCH_FORCE_5V_MODE)
set_5V_mode(); // Assume 5V DC logic level if endstop pullup resistors are enabled
#else
set_OD_mode();
#endif
#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
set_OD_mode();
#endif
if (in_deploy) {
_deploy();
#if ENABLED(BLTOUCH_V3)
set_SW_mode(); // Ensure Switch mode is activated for BLTouch V3. Ignored on V2.
#endif
set_SW_mode(); // Ensure Switch mode is activated for BLTouch V3. Ignored on V2.
}
else _stow();