Procházet zdrojové kódy

Fix Probe Offset bug...

Roxy-3D před 6 roky
rodič
revize
ab6908a513
No account linked to committer's email address
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Zobrazit soubor

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

Loading…
Zrušit
Uložit