Browse Source

Match bltouch test in do_homing_move with new code

Scott Lahteine 8 years ago
parent
commit
041d127cd3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

2199
 static void do_homing_move(const AxisEnum axis, float distance, float fr_mm_s=0.0) {
2199
 static void do_homing_move(const AxisEnum axis, float distance, float fr_mm_s=0.0) {
2200
 
2200
 
2201
   #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
2201
   #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
2202
-    bool deploy_bltouch = (axis == Z_AXIS && where < 0);
2202
+    bool deploy_bltouch = (axis == Z_AXIS && distance < 0);
2203
     if (deploy_bltouch) set_bltouch_deployed(true);
2203
     if (deploy_bltouch) set_bltouch_deployed(true);
2204
   #endif
2204
   #endif
2205
 
2205
 

Loading…
Cancel
Save