Document M125 P

This commit is contained in:
Scott Lahteine 2020-10-19 00:37:32 -05:00
parent 8285953c1b
commit f501930728

View File

@ -49,10 +49,13 @@
* position and waits, resuming with a button click or M108. * position and waits, resuming with a button click or M108.
* Without PARK_HEAD_ON_PAUSE the M125 command does nothing. * Without PARK_HEAD_ON_PAUSE the M125 command does nothing.
* *
* L = override retract length * L<linear> = Override retract Length
* X = override X * X<pos> = Override park position X
* Y = override Y * Y<pos> = Override park position Y
* Z = override Z raise * Z<linear> = Override Z raise
*
* With an LCD menu:
* P<bool> = Always show a prompt and await a response
*/ */
void GcodeSuite::M125() { void GcodeSuite::M125() {
// Initial retract before move to filament change position // 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)); 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)) { if (pause_print(retract, park_point, 0, show_lcd)) {
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true)); TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));