Use 0 as the bed position (not Z_MIN_POS)
This commit is contained in:
		@@ -105,7 +105,7 @@ void GcodeSuite::G29() {
 | 
			
		||||
          enable_soft_endstops = soft_endstops_enabled;
 | 
			
		||||
        #endif
 | 
			
		||||
        // Move close to the bed before the first point
 | 
			
		||||
        do_blocking_move_to_z(Z_MIN_POS);
 | 
			
		||||
        do_blocking_move_to_z(0);
 | 
			
		||||
      }
 | 
			
		||||
      else {
 | 
			
		||||
        // For G29 S2 after adjusting Z.
 | 
			
		||||
@@ -127,7 +127,7 @@ void GcodeSuite::G29() {
 | 
			
		||||
      }
 | 
			
		||||
      else {
 | 
			
		||||
        // One last "return to the bed" (as originally coded) at completion
 | 
			
		||||
        current_position[Z_AXIS] = Z_MIN_POS + MANUAL_PROBE_HEIGHT;
 | 
			
		||||
        current_position[Z_AXIS] = MANUAL_PROBE_HEIGHT;
 | 
			
		||||
        line_to_current_position();
 | 
			
		||||
        stepper.synchronize();
 | 
			
		||||
 | 
			
		||||
@@ -141,7 +141,7 @@ void GcodeSuite::G29() {
 | 
			
		||||
        set_bed_leveling_enabled(true);
 | 
			
		||||
 | 
			
		||||
        #if ENABLED(MESH_G28_REST_ORIGIN)
 | 
			
		||||
          current_position[Z_AXIS] = Z_MIN_POS;
 | 
			
		||||
          current_position[Z_AXIS] = 0;
 | 
			
		||||
          set_destination_from_current();
 | 
			
		||||
          buffer_line_to_destination(homing_feedrate(Z_AXIS));
 | 
			
		||||
          stepper.synchronize();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user