浏览代码

Fix Probe Offset bug...

Roxy-3D 6 年前
父节点
当前提交
ab6908a513
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp 查看文件

@@ -1241,8 +1241,8 @@
1241 1241
     out_mesh.distance = -99999.9f;
1242 1242
 
1243 1243
     // Get our reference position. Either the nozzle or probe location.
1244
-    const float px = rx - (probe_as_reference == USE_PROBE_AS_REFERENCE ? X_PROBE_OFFSET_FROM_EXTRUDER : 0),
1245
-                py = ry - (probe_as_reference == USE_PROBE_AS_REFERENCE ? Y_PROBE_OFFSET_FROM_EXTRUDER : 0);
1244
+    const float px = rx + (probe_as_reference == USE_PROBE_AS_REFERENCE ? X_PROBE_OFFSET_FROM_EXTRUDER : 0),
1245
+                py = ry + (probe_as_reference == USE_PROBE_AS_REFERENCE ? Y_PROBE_OFFSET_FROM_EXTRUDER : 0);
1246 1246
 
1247 1247
     float best_so_far = 99999.99f;
1248 1248
 

正在加载...
取消
保存