|
@@ -48,6 +48,93 @@
|
48
|
48
|
#error "You are using an old Configuration_adv.h file, update it before building Marlin."
|
49
|
49
|
#endif
|
50
|
50
|
|
|
51
|
+ /**
|
|
52
|
+ * Warnings for old configurations
|
|
53
|
+ */
|
|
54
|
+#if WATCH_TEMP_PERIOD > 500
|
|
55
|
+ #error "WATCH_TEMP_PERIOD now uses seconds instead of milliseconds."
|
|
56
|
+#elif DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
|
|
57
|
+ #error "Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS."
|
|
58
|
+#elif DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
|
|
59
|
+ #error "Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED."
|
|
60
|
+#elif ENABLED(COREXZ) && ENABLED(Z_LATE_ENABLE)
|
|
61
|
+ #error "Z_LATE_ENABLE can't be used with COREXZ."
|
|
62
|
+#elif defined(X_HOME_RETRACT_MM)
|
|
63
|
+ #error "[XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM."
|
|
64
|
+#elif defined(BEEPER)
|
|
65
|
+ #error "BEEPER is now BEEPER_PIN. Please update your pins definitions."
|
|
66
|
+#elif defined(SDCARDDETECT)
|
|
67
|
+ #error "SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions."
|
|
68
|
+#elif defined(SDCARDDETECTINVERTED)
|
|
69
|
+ #error "SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration."
|
|
70
|
+#elif defined(BTENABLED)
|
|
71
|
+ #error "BTENABLED is now BLUETOOTH. Please update your configuration."
|
|
72
|
+#elif defined(CUSTOM_MENDEL_NAME)
|
|
73
|
+ #error "CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration."
|
|
74
|
+#elif defined(HAS_AUTOMATIC_VERSIONING)
|
|
75
|
+ #error "HAS_AUTOMATIC_VERSIONING is now USE_AUTOMATIC_VERSIONING. Please update your configuration."
|
|
76
|
+#elif defined(ENABLE_AUTO_BED_LEVELING)
|
|
77
|
+ #error "ENABLE_AUTO_BED_LEVELING is now AUTO_BED_LEVELING_FEATURE. Please update your configuration."
|
|
78
|
+#elif defined(SDSLOW)
|
|
79
|
+ #error "SDSLOW deprecated. Set SPI_SPEED to SPI_HALF_SPEED instead."
|
|
80
|
+#elif defined(SDEXTRASLOW)
|
|
81
|
+ #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
|
|
82
|
+#elif defined(FILAMENT_SENSOR)
|
|
83
|
+ #error "FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead."
|
|
84
|
+#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
|
|
85
|
+ #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
|
|
86
|
+#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
|
|
87
|
+ #error "Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2"
|
|
88
|
+#elif defined(LANGUAGE_INCLUDE)
|
|
89
|
+ #error "LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration."
|
|
90
|
+#elif defined(EXTRUDER_OFFSET_X) || defined(EXTRUDER_OFFSET_Y)
|
|
91
|
+ #error "EXTRUDER_OFFSET_[XY] is deprecated. Use HOTEND_OFFSET_[XY] instead."
|
|
92
|
+#elif defined(PID_PARAMS_PER_EXTRUDER)
|
|
93
|
+ #error "PID_PARAMS_PER_EXTRUDER is deprecated. Use PID_PARAMS_PER_HOTEND instead."
|
|
94
|
+#elif defined(EXTRUDER_WATTS) || defined(BED_WATTS)
|
|
95
|
+ #error "EXTRUDER_WATTS and BED_WATTS are deprecated. Remove them from your configuration."
|
|
96
|
+#elif defined(SERVO_ENDSTOP_ANGLES)
|
|
97
|
+ #error "SERVO_ENDSTOP_ANGLES is deprecated. Use Z_SERVO_ANGLES instead."
|
|
98
|
+#elif defined(X_ENDSTOP_SERVO_NR) || defined(Y_ENDSTOP_SERVO_NR)
|
|
99
|
+ #error "X_ENDSTOP_SERVO_NR and Y_ENDSTOP_SERVO_NR are deprecated and should be removed."
|
|
100
|
+#elif defined(XY_TRAVEL_SPEED)
|
|
101
|
+ #error "XY_TRAVEL_SPEED is deprecated. Use XY_PROBE_SPEED instead."
|
|
102
|
+#elif defined(PROBE_SERVO_DEACTIVATION_DELAY)
|
|
103
|
+ #error "PROBE_SERVO_DEACTIVATION_DELAY is deprecated. Use DEACTIVATE_SERVOS_AFTER_MOVE instead."
|
|
104
|
+#elif defined(SERVO_DEACTIVATION_DELAY)
|
|
105
|
+ #error "SERVO_DEACTIVATION_DELAY is deprecated. Use SERVO_DELAY instead."
|
|
106
|
+#elif ENABLED(FILAMENTCHANGEENABLE)
|
|
107
|
+ #error "FILAMENTCHANGEENABLE is now FILAMENT_CHANGE_FEATURE. Please update your configuration."
|
|
108
|
+#elif defined(PLA_PREHEAT_HOTEND_TEMP)
|
|
109
|
+ #error "PLA_PREHEAT_HOTEND_TEMP is now PREHEAT_1_TEMP_HOTEND. Please update your configuration."
|
|
110
|
+#elif defined(PLA_PREHEAT_HPB_TEMP)
|
|
111
|
+ #error "PLA_PREHEAT_HPB_TEMP is now PREHEAT_1_TEMP_BED. Please update your configuration."
|
|
112
|
+#elif defined(PLA_PREHEAT_FAN_SPEED)
|
|
113
|
+ #error "PLA_PREHEAT_FAN_SPEED is now PREHEAT_1_FAN_SPEED. Please update your configuration."
|
|
114
|
+#elif defined(ABS_PREHEAT_HOTEND_TEMP)
|
|
115
|
+ #error "ABS_PREHEAT_HOTEND_TEMP is now PREHEAT_2_TEMP_HOTEND. Please update your configuration."
|
|
116
|
+#elif defined(ABS_PREHEAT_HPB_TEMP)
|
|
117
|
+ #error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration."
|
|
118
|
+#elif defined(ABS_PREHEAT_FAN_SPEED)
|
|
119
|
+ #error "ABS_PREHEAT_FAN_SPEED is now PREHEAT_2_FAN_SPEED. Please update your configuration."
|
|
120
|
+#elif defined(ENDSTOPS_ONLY_FOR_HOMING)
|
|
121
|
+ #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead."
|
|
122
|
+#elif defined(HOMING_FEEDRATE)
|
|
123
|
+ #error "HOMING_FEEDRATE is deprecated. Set individual rates with HOMING_FEEDRATE_(XY|Z|E) instead."
|
|
124
|
+#elif defined(MANUAL_HOME_POSITIONS)
|
|
125
|
+ #error "MANUAL_HOME_POSITIONS is deprecated. Set MANUAL_[XYZ]_HOME_POS as-needed instead."
|
|
126
|
+#elif defined(PID_ADD_EXTRUSION_RATE)
|
|
127
|
+ #error "PID_ADD_EXTRUSION_RATE is now PID_EXTRUSION_SCALING and is DISABLED by default. Are you sure you want to use this option? Please update your configuration."
|
|
128
|
+#elif defined(Z_RAISE_BEFORE_HOMING)
|
|
129
|
+ #error "Z_RAISE_BEFORE_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
|
|
130
|
+#elif defined(MIN_Z_HEIGHT_FOR_HOMING)
|
|
131
|
+ #error "MIN_Z_HEIGHT_FOR_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
|
|
132
|
+#elif defined(Z_RAISE_BEFORE_PROBING) || defined(Z_RAISE_AFTER_PROBING)
|
|
133
|
+ #error "Z_RAISE_(BEFORE|AFTER)_PROBING are deprecated. Use Z_PROBE_DEPLOY_HEIGHT instead."
|
|
134
|
+#elif defined(Z_RAISE_PROBE_DEPLOY_STOW) || defined(Z_RAISE_BETWEEN_PROBINGS)
|
|
135
|
+ #error "Z_RAISE_PROBE_DEPLOY_STOW and Z_RAISE_BETWEEN_PROBINGS are now Z_PROBE_DEPLOY_HEIGHT and Z_PROBE_TRAVEL_HEIGHT Please update your configuration."
|
|
136
|
+#endif
|
|
137
|
+
|
51
|
138
|
/**
|
52
|
139
|
* Marlin release, version and default string
|
53
|
140
|
*/
|
|
@@ -647,90 +734,3 @@
|
647
|
734
|
#if ENABLED(EMERGENCY_PARSER) && ENABLED(USBCON)
|
648
|
735
|
#error "EMERGENCY_PARSER does not work on boards with AT90USB processors (USBCON)."
|
649
|
736
|
#endif
|
650
|
|
-
|
651
|
|
- /**
|
652
|
|
- * Warnings for old configurations
|
653
|
|
- */
|
654
|
|
-#if WATCH_TEMP_PERIOD > 500
|
655
|
|
- #error "WATCH_TEMP_PERIOD now uses seconds instead of milliseconds."
|
656
|
|
-#elif DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
|
657
|
|
- #error "Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS."
|
658
|
|
-#elif DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
|
659
|
|
- #error "Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED."
|
660
|
|
-#elif ENABLED(COREXZ) && ENABLED(Z_LATE_ENABLE)
|
661
|
|
- #error "Z_LATE_ENABLE can't be used with COREXZ."
|
662
|
|
-#elif defined(X_HOME_RETRACT_MM)
|
663
|
|
- #error "[XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM."
|
664
|
|
-#elif defined(BEEPER)
|
665
|
|
- #error "BEEPER is now BEEPER_PIN. Please update your pins definitions."
|
666
|
|
-#elif defined(SDCARDDETECT)
|
667
|
|
- #error "SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions."
|
668
|
|
-#elif defined(SDCARDDETECTINVERTED)
|
669
|
|
- #error "SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration."
|
670
|
|
-#elif defined(BTENABLED)
|
671
|
|
- #error "BTENABLED is now BLUETOOTH. Please update your configuration."
|
672
|
|
-#elif defined(CUSTOM_MENDEL_NAME)
|
673
|
|
- #error "CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration."
|
674
|
|
-#elif defined(HAS_AUTOMATIC_VERSIONING)
|
675
|
|
- #error "HAS_AUTOMATIC_VERSIONING is now USE_AUTOMATIC_VERSIONING. Please update your configuration."
|
676
|
|
-#elif defined(ENABLE_AUTO_BED_LEVELING)
|
677
|
|
- #error "ENABLE_AUTO_BED_LEVELING is now AUTO_BED_LEVELING_FEATURE. Please update your configuration."
|
678
|
|
-#elif defined(SDSLOW)
|
679
|
|
- #error "SDSLOW deprecated. Set SPI_SPEED to SPI_HALF_SPEED instead."
|
680
|
|
-#elif defined(SDEXTRASLOW)
|
681
|
|
- #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
|
682
|
|
-#elif defined(FILAMENT_SENSOR)
|
683
|
|
- #error "FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead."
|
684
|
|
-#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
|
685
|
|
- #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
|
686
|
|
-#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
|
687
|
|
- #error "Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2"
|
688
|
|
-#elif defined(LANGUAGE_INCLUDE)
|
689
|
|
- #error "LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration."
|
690
|
|
-#elif defined(EXTRUDER_OFFSET_X) || defined(EXTRUDER_OFFSET_Y)
|
691
|
|
- #error "EXTRUDER_OFFSET_[XY] is deprecated. Use HOTEND_OFFSET_[XY] instead."
|
692
|
|
-#elif defined(PID_PARAMS_PER_EXTRUDER)
|
693
|
|
- #error "PID_PARAMS_PER_EXTRUDER is deprecated. Use PID_PARAMS_PER_HOTEND instead."
|
694
|
|
-#elif defined(EXTRUDER_WATTS) || defined(BED_WATTS)
|
695
|
|
- #error "EXTRUDER_WATTS and BED_WATTS are deprecated. Remove them from your configuration."
|
696
|
|
-#elif defined(SERVO_ENDSTOP_ANGLES)
|
697
|
|
- #error "SERVO_ENDSTOP_ANGLES is deprecated. Use Z_SERVO_ANGLES instead."
|
698
|
|
-#elif defined(X_ENDSTOP_SERVO_NR) || defined(Y_ENDSTOP_SERVO_NR)
|
699
|
|
- #error "X_ENDSTOP_SERVO_NR and Y_ENDSTOP_SERVO_NR are deprecated and should be removed."
|
700
|
|
-#elif defined(XY_TRAVEL_SPEED)
|
701
|
|
- #error "XY_TRAVEL_SPEED is deprecated. Use XY_PROBE_SPEED instead."
|
702
|
|
-#elif defined(PROBE_SERVO_DEACTIVATION_DELAY)
|
703
|
|
- #error "PROBE_SERVO_DEACTIVATION_DELAY is deprecated. Use DEACTIVATE_SERVOS_AFTER_MOVE instead."
|
704
|
|
-#elif defined(SERVO_DEACTIVATION_DELAY)
|
705
|
|
- #error "SERVO_DEACTIVATION_DELAY is deprecated. Use SERVO_DELAY instead."
|
706
|
|
-#elif ENABLED(FILAMENTCHANGEENABLE)
|
707
|
|
- #error "FILAMENTCHANGEENABLE is now FILAMENT_CHANGE_FEATURE. Please update your configuration."
|
708
|
|
-#elif defined(PLA_PREHEAT_HOTEND_TEMP)
|
709
|
|
- #error "PLA_PREHEAT_HOTEND_TEMP is now PREHEAT_1_TEMP_HOTEND. Please update your configuration."
|
710
|
|
-#elif defined(PLA_PREHEAT_HPB_TEMP)
|
711
|
|
- #error "PLA_PREHEAT_HPB_TEMP is now PREHEAT_1_TEMP_BED. Please update your configuration."
|
712
|
|
-#elif defined(PLA_PREHEAT_FAN_SPEED)
|
713
|
|
- #error "PLA_PREHEAT_FAN_SPEED is now PREHEAT_1_FAN_SPEED. Please update your configuration."
|
714
|
|
-#elif defined(ABS_PREHEAT_HOTEND_TEMP)
|
715
|
|
- #error "ABS_PREHEAT_HOTEND_TEMP is now PREHEAT_2_TEMP_HOTEND. Please update your configuration."
|
716
|
|
-#elif defined(ABS_PREHEAT_HPB_TEMP)
|
717
|
|
- #error "ABS_PREHEAT_HPB_TEMP is now PREHEAT_2_TEMP_BED. Please update your configuration."
|
718
|
|
-#elif defined(ABS_PREHEAT_FAN_SPEED)
|
719
|
|
- #error "ABS_PREHEAT_FAN_SPEED is now PREHEAT_2_FAN_SPEED. Please update your configuration."
|
720
|
|
-#elif defined(ENDSTOPS_ONLY_FOR_HOMING)
|
721
|
|
- #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead."
|
722
|
|
-#elif defined(HOMING_FEEDRATE)
|
723
|
|
- #error "HOMING_FEEDRATE is deprecated. Set individual rates with HOMING_FEEDRATE_(XY|Z|E) instead."
|
724
|
|
-#elif defined(MANUAL_HOME_POSITIONS)
|
725
|
|
- #error "MANUAL_HOME_POSITIONS is deprecated. Set MANUAL_[XYZ]_HOME_POS as-needed instead."
|
726
|
|
-#elif defined(PID_ADD_EXTRUSION_RATE)
|
727
|
|
- #error "PID_ADD_EXTRUSION_RATE is now PID_EXTRUSION_SCALING and is DISABLED by default. Are you sure you want to use this option? Please update your configuration."
|
728
|
|
-#elif defined(Z_RAISE_BEFORE_HOMING)
|
729
|
|
- #error "Z_RAISE_BEFORE_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
|
730
|
|
-#elif defined(MIN_Z_HEIGHT_FOR_HOMING)
|
731
|
|
- #error "MIN_Z_HEIGHT_FOR_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
|
732
|
|
-#elif defined(Z_RAISE_BEFORE_PROBING) || defined(Z_RAISE_AFTER_PROBING)
|
733
|
|
- #error "Z_RAISE_(BEFORE|AFTER)_PROBING are deprecated. Use Z_PROBE_DEPLOY_HEIGHT instead."
|
734
|
|
-#elif defined(Z_RAISE_PROBE_DEPLOY_STOW) || defined(Z_RAISE_BETWEEN_PROBINGS)
|
735
|
|
- #error "Z_RAISE_PROBE_DEPLOY_STOW and Z_RAISE_BETWEEN_PROBINGS are now Z_PROBE_DEPLOY_HEIGHT and Z_PROBE_TRAVEL_HEIGHT Please update your configuration."
|
736
|
|
-#endif
|