Browse Source

Merge pull request #4275 from AnHardt/dont-deploy

Don't deploy/stow the probe if z-min-endstop is used for homing
Scott Lahteine 9 years ago
parent
commit
02f711fe00
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

1525
     current_position[axis] = base_home_pos(axis) + home_offset[axis];
1525
     current_position[axis] = base_home_pos(axis) + home_offset[axis];
1526
     update_software_endstops(axis);
1526
     update_software_endstops(axis);
1527
 
1527
 
1528
-    #if HAS_BED_PROBE && Z_HOME_DIR < 0
1528
+    #if HAS_BED_PROBE && Z_HOME_DIR < 0 && DISABLED(Z_MIN_PROBE_ENDSTOP)
1529
       if (axis == Z_AXIS) {
1529
       if (axis == Z_AXIS) {
1530
         current_position[Z_AXIS] -= zprobe_zoffset;
1530
         current_position[Z_AXIS] -= zprobe_zoffset;
1531
         #if ENABLED(DEBUG_LEVELING_FEATURE)
1531
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2362
     home_dir(axis);
2362
     home_dir(axis);
2363
 
2363
 
2364
   // Homing Z towards the bed? Deploy the Z probe or endstop.
2364
   // Homing Z towards the bed? Deploy the Z probe or endstop.
2365
-  #if HAS_BED_PROBE
2365
+  #if HAS_BED_PROBE && DISABLED(Z_MIN_PROBE_ENDSTOP)
2366
     if (axis == Z_AXIS && axis_home_dir < 0) {
2366
     if (axis == Z_AXIS && axis_home_dir < 0) {
2367
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2367
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2368
         if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
2368
         if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
2463
   axis_homed[axis] = true;
2463
   axis_homed[axis] = true;
2464
 
2464
 
2465
   // Put away the Z probe
2465
   // Put away the Z probe
2466
-  #if HAS_BED_PROBE
2466
+  #if HAS_BED_PROBE && DISABLED(Z_MIN_PROBE_ENDSTOP)
2467
     if (axis == Z_AXIS && axis_home_dir < 0) {
2467
     if (axis == Z_AXIS && axis_home_dir < 0) {
2468
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2468
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2469
         if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
2469
         if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");

Loading…
Cancel
Save