Przeglądaj źródła

Fix Probe Offset bug...

Roxy-3D 6 lat temu
rodzic
commit
ab6908a513
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Wyświetl plik

@@ -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
 

Ładowanie…
Anuluj
Zapisz