Browse Source

Merge pull request #3678 from jbrazio/rework/delta-diagonal-rod-timmers

Moved DELTA radius/rod default trimmer values to Conditionals.h
Scott Lahteine 8 years ago
parent
commit
fc5fe2cc22
2 changed files with 24 additions and 18 deletions
  1. 24
    0
      Marlin/Conditionals.h
  2. 0
    18
      Marlin/Marlin.h

+ 24
- 0
Marlin/Conditionals.h View File

@@ -753,5 +753,29 @@
753 753
     #define HAS_Z_MIN_PROBE
754 754
   #endif
755 755
 
756
+  /**
757
+   * Delta radius/rod trimmers
758
+   */
759
+  #if ENABLED(DELTA)
760
+    #ifndef DELTA_RADIUS_TRIM_TOWER_1
761
+      #define DELTA_RADIUS_TRIM_TOWER_1 0.0
762
+    #endif
763
+    #ifndef DELTA_RADIUS_TRIM_TOWER_2
764
+      #define DELTA_RADIUS_TRIM_TOWER_2 0.0
765
+    #endif
766
+    #ifndef DELTA_RADIUS_TRIM_TOWER_3
767
+      #define DELTA_RADIUS_TRIM_TOWER_3 0.0
768
+    #endif
769
+    #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_1
770
+      #define DELTA_DIAGONAL_ROD_TRIM_TOWER_1 0.0
771
+    #endif
772
+    #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_2
773
+      #define DELTA_DIAGONAL_ROD_TRIM_TOWER_2 0.0
774
+    #endif
775
+    #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_3
776
+      #define DELTA_DIAGONAL_ROD_TRIM_TOWER_3 0.0
777
+    #endif
778
+  #endif
779
+
756 780
 #endif //CONFIGURATION_LCD
757 781
 #endif //CONDITIONALS_H

+ 0
- 18
Marlin/Marlin.h View File

@@ -290,24 +290,6 @@ extern long code_value_long();
290 290
 extern int16_t code_value_short();
291 291
 
292 292
 #if ENABLED(DELTA)
293
-  #ifndef DELTA_RADIUS_TRIM_TOWER_1
294
-    #define DELTA_RADIUS_TRIM_TOWER_1 0.0
295
-  #endif
296
-  #ifndef DELTA_RADIUS_TRIM_TOWER_2
297
-    #define DELTA_RADIUS_TRIM_TOWER_2 0.0
298
-  #endif
299
-  #ifndef DELTA_RADIUS_TRIM_TOWER_3
300
-    #define DELTA_RADIUS_TRIM_TOWER_3 0.0
301
-  #endif
302
-  #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_1
303
-    #define DELTA_DIAGONAL_ROD_TRIM_TOWER_1 0.0
304
-  #endif
305
-  #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_2
306
-    #define DELTA_DIAGONAL_ROD_TRIM_TOWER_2 0.0
307
-  #endif
308
-  #ifndef DELTA_DIAGONAL_ROD_TRIM_TOWER_3
309
-    #define DELTA_DIAGONAL_ROD_TRIM_TOWER_3 0.0
310
-  #endif
311 293
   extern float delta[3];
312 294
   extern float endstop_adj[3]; // axis[n].endstop_adj
313 295
   extern float delta_radius;

Loading…
Cancel
Save