Match bltouch test in do_homing_move with new code

This commit is contained in:
Scott Lahteine 2016-09-24 23:58:08 -05:00 committed by GitHub
parent eb4fa8adf8
commit 041d127cd3

View File

@ -2199,7 +2199,7 @@ static void clean_up_after_endstop_or_probe_move() {
static void do_homing_move(const AxisEnum axis, float distance, float fr_mm_s=0.0) {
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
bool deploy_bltouch = (axis == Z_AXIS && where < 0);
bool deploy_bltouch = (axis == Z_AXIS && distance < 0);
if (deploy_bltouch) set_bltouch_deployed(true);
#endif