Add loose soft endstop state, apply to UBL fine-tune (#19681)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							48a24202ef
						
					
				
				
					commit
					ea65e10dc7
				
			@@ -1009,6 +1009,8 @@
 | 
			
		||||
 | 
			
		||||
        lcd_mesh_edit_setup(new_z);
 | 
			
		||||
 | 
			
		||||
        SET_SOFT_ENDSTOP_LOOSE(true);
 | 
			
		||||
 | 
			
		||||
        do {
 | 
			
		||||
          idle();
 | 
			
		||||
          new_z = lcd_mesh_edit();
 | 
			
		||||
@@ -1016,6 +1018,8 @@
 | 
			
		||||
          SERIAL_FLUSH();                                   // Prevent host M105 buffer overrun.
 | 
			
		||||
        } while (!ui.button_pressed());
 | 
			
		||||
 | 
			
		||||
        SET_SOFT_ENDSTOP_LOOSE(false);
 | 
			
		||||
 | 
			
		||||
        if (!lcd_map_control) ui.return_to_status();        // Just editing a single point? Return to status
 | 
			
		||||
 | 
			
		||||
        if (click_and_hold(abort_fine_tune)) break;         // Button held down? Abort editing
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user