From c56f862532e5c2b14eed7300e56ba4b949bcca51 Mon Sep 17 00:00:00 2001 From: Katelyn Schiesser Date: Tue, 15 Jun 2021 23:41:20 -0700 Subject: [PATCH 1/2] add comment for G28L parameter #22126 --- Marlin/src/gcode/calibrate/G28.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 61e7ab42335b..97055bb691f9 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -195,8 +195,8 @@ * None Home to all axes with no parameters. * With QUICK_HOME enabled XY will home together, then Z. * + * L Restore leveling state after homing (default: true) * O Home only if position is unknown - * * Rn Raise by n mm/inches before homing * * Cartesian/SCARA parameters From 81f3f5474a9e60d48b24d836b24ec4bcc369c02c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 17 Jun 2021 01:14:12 -0500 Subject: [PATCH 2/2] Update G28.cpp --- Marlin/src/gcode/calibrate/G28.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 97055bb691f9..69cdd02d1619 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -195,9 +195,9 @@ * None Home to all axes with no parameters. * With QUICK_HOME enabled XY will home together, then Z. * - * L Restore leveling state after homing (default: true) - * O Home only if position is unknown - * Rn Raise by n mm/inches before homing + * L Force leveling state ON (if possible) or OFF after homing (Requires RESTORE_LEVELING_AFTER_G28 or ENABLE_LEVELING_AFTER_G28) + * O Home only if the position is not known and trusted + * R Raise by n mm/inches before homing * * Cartesian/SCARA parameters * @@ -229,7 +229,7 @@ void GcodeSuite::G28() { #endif // Home (O)nly if position is unknown - if (!axes_should_home() && parser.boolval('O')) { + if (!axes_should_home() && parser.seen_test('O')) { if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("> homing not needed, skip"); return; }