Ver código fonte

Conditionals updates from #7979

Scott Lahteine 6 anos atrás
pai
commit
69a7d4e0a5
1 arquivos alterados com 25 adições e 1 exclusões
  1. 25
    1
      Marlin/Conditionals_post.h

+ 25
- 1
Marlin/Conditionals_post.h Ver arquivo

@@ -855,9 +855,22 @@
855 855
   #define HEATER_IDLE_HANDLER (ENABLED(ADVANCED_PAUSE_FEATURE) || ENABLED(PROBING_HEATERS_OFF))
856 856
 
857 857
   /**
858
+   * Only constrain Z on DELTA / SCARA machines
859
+   */
860
+  #if IS_KINEMATIC
861
+    #undef MIN_SOFTWARE_ENDSTOP_X
862
+    #undef MIN_SOFTWARE_ENDSTOP_Y
863
+    #undef MAX_SOFTWARE_ENDSTOP_X
864
+    #undef MAX_SOFTWARE_ENDSTOP_Y
865
+  #endif
866
+
867
+  /**
858 868
    * Delta radius/rod trimmers/angle trimmers
859 869
    */
860 870
   #if ENABLED(DELTA)
871
+    #ifndef DELTA_PROBEABLE_RADIUS
872
+      #define DELTA_PROBEABLE_RADIUS DELTA_PRINTABLE_RADIUS
873
+    #endif
861 874
     #ifndef DELTA_CALIBRATION_RADIUS
862 875
       #define DELTA_CALIBRATION_RADIUS DELTA_PRINTABLE_RADIUS - 10
863 876
     #endif
@@ -878,7 +891,6 @@
878 891
   /**
879 892
    * Set granular options based on the specific type of leveling
880 893
    */
881
-
882 894
   #define UBL_DELTA  (ENABLED(AUTO_BED_LEVELING_UBL) && (ENABLED(DELTA) || ENABLED(UBL_GRANULAR_SEGMENTATION_FOR_CARTESIAN)))
883 895
   #define ABL_PLANAR (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_3POINT))
884 896
   #define ABL_GRID   (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR))
@@ -978,6 +990,18 @@
978 990
   #endif
979 991
 
980 992
   /**
993
+   * VIKI2, miniVIKI, and AZSMZ_12864 require DOGLCD_SCK and DOGLCD_MOSI to be defined.
994
+   */
995
+  #if ENABLED(VIKI2) || ENABLED(miniVIKI) || ENABLED(AZSMZ_12864)
996
+    #ifndef DOGLCD_SCK
997
+      #define DOGLCD_SCK  SCK_PIN
998
+    #endif
999
+    #ifndef DOGLCD_MOSI
1000
+      #define DOGLCD_MOSI MOSI_PIN
1001
+    #endif
1002
+  #endif
1003
+
1004
+  /**
981 1005
    * Z_HOMING_HEIGHT / Z_CLEARANCE_BETWEEN_PROBES
982 1006
    */
983 1007
   #ifndef Z_HOMING_HEIGHT

Carregando…
Cancelar
Salvar