Browse Source

Document M125 P

Scott Lahteine 3 years ago
parent
commit
f501930728
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      Marlin/src/gcode/feature/pause/M125.cpp

+ 9
- 5
Marlin/src/gcode/feature/pause/M125.cpp View File

49
  *       position and waits, resuming with a button click or M108.
49
  *       position and waits, resuming with a button click or M108.
50
  *       Without PARK_HEAD_ON_PAUSE the M125 command does nothing.
50
  *       Without PARK_HEAD_ON_PAUSE the M125 command does nothing.
51
  *
51
  *
52
- *    L = override retract length
53
- *    X = override X
54
- *    Y = override Y
55
- *    Z = override Z raise
52
+ *    L<linear> = Override retract Length
53
+ *    X<pos>    = Override park position X
54
+ *    Y<pos>    = Override park position Y
55
+ *    Z<linear> = Override Z raise
56
+ *
57
+ *  With an LCD menu:
58
+ *    P<bool>   = Always show a prompt and await a response
56
  */
59
  */
57
 void GcodeSuite::M125() {
60
 void GcodeSuite::M125() {
58
   // Initial retract before move to filament change position
61
   // Initial retract before move to filament change position
75
 
78
 
76
   TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT));
79
   TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT));
77
 
80
 
78
-  const bool show_lcd = TERN0(HAS_LCD_MENU, parser.seenval('P'));
81
+  // If possible, show an LCD prompt with the 'P' flag
82
+  const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
79
 
83
 
80
   if (pause_print(retract, park_point, 0, show_lcd)) {
84
   if (pause_print(retract, park_point, 0, show_lcd)) {
81
     TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
85
     TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));

Loading…
Cancel
Save