Document M125 P
This commit is contained in:
		
							parent
							
								
									af956bbb32
								
							
						
					
					
						commit
						e00745c548
					
				@ -49,10 +49,13 @@
 | 
			
		||||
 *       position and waits, resuming with a button click or M108.
 | 
			
		||||
 *       Without PARK_HEAD_ON_PAUSE the M125 command does nothing.
 | 
			
		||||
 *
 | 
			
		||||
 *    L = override retract length
 | 
			
		||||
 *    X = override X
 | 
			
		||||
 *    Y = override Y
 | 
			
		||||
 *    Z = override Z raise
 | 
			
		||||
 *    L<linear> = Override retract Length
 | 
			
		||||
 *    X<pos>    = Override park position X
 | 
			
		||||
 *    Y<pos>    = Override park position Y
 | 
			
		||||
 *    Z<linear> = Override Z raise
 | 
			
		||||
 *
 | 
			
		||||
 *  With an LCD menu:
 | 
			
		||||
 *    P<bool>   = Always show a prompt and await a response
 | 
			
		||||
 */
 | 
			
		||||
void GcodeSuite::M125() {
 | 
			
		||||
  // Initial retract before move to filament change position
 | 
			
		||||
@ -75,7 +78,8 @@ void GcodeSuite::M125() {
 | 
			
		||||
 | 
			
		||||
  TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT));
 | 
			
		||||
 | 
			
		||||
  const bool show_lcd = TERN0(HAS_LCD_MENU, parser.seenval('P'));
 | 
			
		||||
  // If possible, show an LCD prompt with the 'P' flag
 | 
			
		||||
  const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
 | 
			
		||||
 | 
			
		||||
  if (pause_print(retract, park_point, 0, show_lcd)) {
 | 
			
		||||
    TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user