Browse Source

Fix G26 corrupted position

Scott Lahteine 4 years ago
parent
commit
a96be32fae
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      Marlin/src/gcode/bedlevel/G26.cpp

+ 1
- 3
Marlin/src/gcode/bedlevel/G26.cpp View File

640
    */
640
    */
641
   set_bed_leveling_enabled(!parser.seen('D'));
641
   set_bed_leveling_enabled(!parser.seen('D'));
642
 
642
 
643
-  if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES) {
643
+  if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES)
644
     do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
644
     do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
645
-    current_position = destination;
646
-  }
647
 
645
 
648
   #if DISABLED(NO_VOLUMETRICS)
646
   #if DISABLED(NO_VOLUMETRICS)
649
     bool volumetric_was_enabled = parser.volumetric_enabled;
647
     bool volumetric_was_enabled = parser.volumetric_enabled;

Loading…
Cancel
Save