Quellcode durchsuchen

Patch ADJUST_DELTA macro for SCARA

Scott Lahteine vor 8 Jahren
Ursprung
Commit
029824bc49
1 geänderte Dateien mit 11 neuen und 7 gelöschten Zeilen
  1. 11
    7
      Marlin/Marlin_main.cpp

+ 11
- 7
Marlin/Marlin_main.cpp Datei anzeigen

@@ -460,13 +460,17 @@ static uint8_t target_extruder;
460 460
 #endif
461 461
 
462 462
 #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
463
-  #define ADJUST_DELTA(V) \
464
-    if (planner.abl_enabled) { \
465
-      const float zadj = bilinear_z_offset(V); \
466
-      delta[A_AXIS] += zadj; \
467
-      delta[B_AXIS] += zadj; \
468
-      delta[C_AXIS] += zadj; \
469
-    }
463
+  #if ENABLED(DELTA)
464
+    #define ADJUST_DELTA(V) \
465
+      if (planner.abl_enabled) { \
466
+        const float zadj = bilinear_z_offset(V); \
467
+        delta[A_AXIS] += zadj; \
468
+        delta[B_AXIS] += zadj; \
469
+        delta[C_AXIS] += zadj; \
470
+      }
471
+  #else
472
+    #define ADJUST_DELTA(V) if (planner.abl_enabled) { delta[Z_AXIS] += bilinear_z_offset(V); }
473
+  #endif
470 474
 #elif IS_KINEMATIC
471 475
   #define ADJUST_DELTA(V) NOOP
472 476
 #endif

Laden…
Abbrechen
Speichern