瀏覽代碼

💡 Add G28 L description (#22144)

Katelyn Schiesser 4 年之前
父節點
當前提交
d0df8bc3cb
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      Marlin/src/gcode/calibrate/G28.cpp

+ 4
- 4
Marlin/src/gcode/calibrate/G28.cpp 查看文件

@@ -195,9 +195,9 @@
195 195
  *  None  Home to all axes with no parameters.
196 196
  *        With QUICK_HOME enabled XY will home together, then Z.
197 197
  *
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
201 201
  *
202 202
  * Cartesian/SCARA parameters
203 203
  *
@@ -229,7 +229,7 @@ void GcodeSuite::G28() {
229 229
   #endif
230 230
 
231 231
   // Home (O)nly if position is unknown
232
-  if (!axes_should_home() && parser.boolval('O')) {
232
+  if (!axes_should_home() && parser.seen_test('O')) {
233 233
     if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("> homing not needed, skip");
234 234
     return;
235 235
   }

Loading…
取消
儲存