Fix G26 corrupted position
This commit is contained in:
		@@ -640,10 +640,8 @@ void GcodeSuite::G26() {
 | 
				
			|||||||
   */
 | 
					   */
 | 
				
			||||||
  set_bed_leveling_enabled(!parser.seen('D'));
 | 
					  set_bed_leveling_enabled(!parser.seen('D'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES) {
 | 
					  if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES)
 | 
				
			||||||
    do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
 | 
					    do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
 | 
				
			||||||
    current_position = destination;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #if DISABLED(NO_VOLUMETRICS)
 | 
					  #if DISABLED(NO_VOLUMETRICS)
 | 
				
			||||||
    bool volumetric_was_enabled = parser.volumetric_enabled;
 | 
					    bool volumetric_was_enabled = parser.volumetric_enabled;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user