Skip to content

Commit ce7bbaf

Browse files
slowbrothinkyhead
authored andcommitted
💡 Add G28 L description (MarlinFirmware#22144)
1 parent 5ffc4bf commit ce7bbaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Marlin/src/gcode/calibrate/G28.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@
195195
* None Home to all axes with no parameters.
196196
* With QUICK_HOME enabled XY will home together, then Z.
197197
*
198-
* O Home only if position is unknown
199-
*
200-
* Rn Raise by n mm/inches before homing
198+
* L<bool> Force leveling state ON (if possible) or OFF after homing (Requires RESTORE_LEVELING_AFTER_G28 or ENABLE_LEVELING_AFTER_G28)
199+
* O Home only if the position is not known and trusted
200+
* R<linear> Raise by n mm/inches before homing
201201
*
202202
* Cartesian/SCARA parameters
203203
*
@@ -229,7 +229,7 @@ void GcodeSuite::G28() {
229229
#endif
230230

231231
// Home (O)nly if position is unknown
232-
if (!axes_should_home() && parser.boolval('O')) {
232+
if (!axes_should_home() && parser.seen_test('O')) {
233233
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("> homing not needed, skip");
234234
return;
235235
}

0 commit comments

Comments
 (0)