Browse Source

z_offset change

Avoids to have to recalibrate the delta_height after a z_offset change
LVD-AC 8 years ago
parent
commit
a9bc1d30cc
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Marlin/Marlin_main.cpp

+ 4
- 0
Marlin/Marlin_main.cpp View File

@@ -8488,6 +8488,10 @@ inline void gcode_M503() {
8488 8488
       #else
8489 8489
         UNUSED(no_babystep);
8490 8490
       #endif
8491
+ 
8492
+      #if ENABLED(DELTA) // correct the delta_height
8493
+        home_offset[Z_AXIS] -= diff;
8494
+      #endif
8491 8495
     }
8492 8496
 
8493 8497
     last_zoffset = zprobe_zoffset;

Loading…
Cancel
Save