|
@@ -35,49 +35,49 @@
|
35
|
35
|
* action to proceed with compilation in such environments.
|
36
|
36
|
*/
|
37
|
37
|
#if !defined(ARDUINO) || ARDUINO < 10600
|
38
|
|
- #error Versions of Arduino IDE prior to 1.6.0 are no longer supported, please update your toolkit.
|
|
38
|
+ #error "Versions of Arduino IDE prior to 1.6.0 are no longer supported, please update your toolkit."
|
39
|
39
|
#endif
|
40
|
40
|
|
41
|
41
|
/**
|
42
|
42
|
* Marlin release, version and default string
|
43
|
43
|
*/
|
44
|
44
|
#ifndef SHORT_BUILD_VERSION
|
45
|
|
- #error SHORT_BUILD_VERSION Information must be specified
|
|
45
|
+ #error "SHORT_BUILD_VERSION Information must be specified"
|
46
|
46
|
#endif
|
47
|
47
|
|
48
|
48
|
#ifndef DETAILED_BUILD_VERSION
|
49
|
|
- #error BUILD_VERSION Information must be specified
|
|
49
|
+ #error "BUILD_VERSION Information must be specified"
|
50
|
50
|
#endif
|
51
|
51
|
|
52
|
52
|
#ifndef STRING_DISTRIBUTION_DATE
|
53
|
|
- #error STRING_DISTRIBUTION_DATE Information must be specified
|
|
53
|
+ #error "STRING_DISTRIBUTION_DATE Information must be specified"
|
54
|
54
|
#endif
|
55
|
55
|
|
56
|
56
|
#ifndef PROTOCOL_VERSION
|
57
|
|
- #error PROTOCOL_VERSION Information must be specified
|
|
57
|
+ #error "PROTOCOL_VERSION Information must be specified"
|
58
|
58
|
#endif
|
59
|
59
|
|
60
|
60
|
#ifndef MACHINE_NAME
|
61
|
|
- #error MACHINE_NAME Information must be specified
|
|
61
|
+ #error "MACHINE_NAME Information must be specified"
|
62
|
62
|
#endif
|
63
|
63
|
|
64
|
64
|
#ifndef SOURCE_CODE_URL
|
65
|
|
- #error SOURCE_CODE_URL Information must be specified
|
|
65
|
+ #error "SOURCE_CODE_URL Information must be specified"
|
66
|
66
|
#endif
|
67
|
67
|
|
68
|
68
|
#ifndef DEFAULT_MACHINE_UUID
|
69
|
|
- #error DEFAULT_MACHINE_UUID Information must be specified
|
|
69
|
+ #error "DEFAULT_MACHINE_UUID Information must be specified"
|
70
|
70
|
#endif
|
71
|
71
|
|
72
|
72
|
#ifndef WEBSITE_URL
|
73
|
|
- #error WEBSITE_URL Information must be specified
|
|
73
|
+ #error "WEBSITE_URL Information must be specified"
|
74
|
74
|
#endif
|
75
|
75
|
|
76
|
76
|
/**
|
77
|
77
|
* Dual Stepper Drivers
|
78
|
78
|
*/
|
79
|
79
|
#if ENABLED(Z_DUAL_STEPPER_DRIVERS) && ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
80
|
|
- #error You cannot have dual stepper drivers for both Y and Z.
|
|
80
|
+ #error "You cannot have dual stepper drivers for both Y and Z."
|
81
|
81
|
#endif
|
82
|
82
|
|
83
|
83
|
/**
|
|
@@ -85,13 +85,13 @@
|
85
|
85
|
*/
|
86
|
86
|
#if ENABLED(LCD_PROGRESS_BAR)
|
87
|
87
|
#if DISABLED(SDSUPPORT)
|
88
|
|
- #error LCD_PROGRESS_BAR requires SDSUPPORT.
|
|
88
|
+ #error "LCD_PROGRESS_BAR requires SDSUPPORT."
|
89
|
89
|
#endif
|
90
|
90
|
#if ENABLED(DOGLCD)
|
91
|
|
- #error LCD_PROGRESS_BAR does not apply to graphical displays.
|
|
91
|
+ #error "LCD_PROGRESS_BAR does not apply to graphical displays."
|
92
|
92
|
#endif
|
93
|
93
|
#if ENABLED(FILAMENT_LCD_DISPLAY)
|
94
|
|
- #error LCD_PROGRESS_BAR and FILAMENT_LCD_DISPLAY are not fully compatible. Comment out this line to use both.
|
|
94
|
+ #error "LCD_PROGRESS_BAR and FILAMENT_LCD_DISPLAY are not fully compatible. Comment out this line to use both."
|
95
|
95
|
#endif
|
96
|
96
|
#endif
|
97
|
97
|
|
|
@@ -100,13 +100,13 @@
|
100
|
100
|
*/
|
101
|
101
|
#if ENABLED(BABYSTEPPING)
|
102
|
102
|
#if DISABLED(ULTRA_LCD)
|
103
|
|
- #error BABYSTEPPING requires an LCD controller.
|
|
103
|
+ #error "BABYSTEPPING requires an LCD controller."
|
104
|
104
|
#endif
|
105
|
105
|
#if ENABLED(SCARA)
|
106
|
|
- #error BABYSTEPPING is not implemented for SCARA yet.
|
|
106
|
+ #error "BABYSTEPPING is not implemented for SCARA yet."
|
107
|
107
|
#endif
|
108
|
108
|
#if ENABLED(DELTA) && ENABLED(BABYSTEP_XY)
|
109
|
|
- #error BABYSTEPPING only implemented for Z axis on deltabots.
|
|
109
|
+ #error "BABYSTEPPING only implemented for Z axis on deltabots."
|
110
|
110
|
#endif
|
111
|
111
|
#endif
|
112
|
112
|
|
|
@@ -114,7 +114,7 @@
|
114
|
114
|
* Filament Change with Extruder Runout Prevention
|
115
|
115
|
*/
|
116
|
116
|
#if ENABLED(FILAMENTCHANGEENABLE) && ENABLED(EXTRUDER_RUNOUT_PREVENT)
|
117
|
|
- #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE.
|
|
117
|
+ #error "EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE."
|
118
|
118
|
#endif
|
119
|
119
|
|
120
|
120
|
/**
|
|
@@ -123,23 +123,23 @@
|
123
|
123
|
#if EXTRUDERS > 1
|
124
|
124
|
|
125
|
125
|
#if EXTRUDERS > 4
|
126
|
|
- #error The maximum number of EXTRUDERS in Marlin is 4.
|
|
126
|
+ #error "The maximum number of EXTRUDERS in Marlin is 4."
|
127
|
127
|
#endif
|
128
|
128
|
|
129
|
129
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
130
|
|
- #error EXTRUDERS must be 1 with TEMP_SENSOR_1_AS_REDUNDANT.
|
|
130
|
+ #error "EXTRUDERS must be 1 with TEMP_SENSOR_1_AS_REDUNDANT."
|
131
|
131
|
#endif
|
132
|
132
|
|
133
|
133
|
#if ENABLED(HEATERS_PARALLEL)
|
134
|
|
- #error EXTRUDERS must be 1 with HEATERS_PARALLEL.
|
|
134
|
+ #error "EXTRUDERS must be 1 with HEATERS_PARALLEL."
|
135
|
135
|
#endif
|
136
|
136
|
|
137
|
137
|
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
138
|
|
- #error EXTRUDERS must be 1 with Y_DUAL_STEPPER_DRIVERS.
|
|
138
|
+ #error "EXTRUDERS must be 1 with Y_DUAL_STEPPER_DRIVERS."
|
139
|
139
|
#endif
|
140
|
140
|
|
141
|
141
|
#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
|
142
|
|
- #error EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS.
|
|
142
|
+ #error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS."
|
143
|
143
|
#endif
|
144
|
144
|
|
145
|
145
|
#endif // EXTRUDERS > 1
|
|
@@ -148,16 +148,16 @@
|
148
|
148
|
* Limited number of servos
|
149
|
149
|
*/
|
150
|
150
|
#if NUM_SERVOS > 4
|
151
|
|
- #error The maximum number of SERVOS in Marlin is 4.
|
|
151
|
+ #error "The maximum number of SERVOS in Marlin is 4."
|
152
|
152
|
#endif
|
153
|
153
|
#if defined(NUM_SERVOS) && NUM_SERVOS > 0
|
154
|
154
|
#if X_ENDSTOP_SERVO_NR >= 0 || Y_ENDSTOP_SERVO_NR >= 0 || Z_ENDSTOP_SERVO_NR >= 0
|
155
|
155
|
#if X_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
156
|
|
- #error X_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
|
|
156
|
+ #error "X_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
|
157
|
157
|
#elif Y_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
158
|
|
- #error Y_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
|
|
158
|
+ #error "Y_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
|
159
|
159
|
#elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
160
|
|
- #error Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
|
|
160
|
+ #error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
|
161
|
161
|
#endif
|
162
|
162
|
#endif
|
163
|
163
|
#endif
|
|
@@ -166,21 +166,21 @@
|
166
|
166
|
* Servo deactivation depends on servo endstops
|
167
|
167
|
*/
|
168
|
168
|
#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_SERVO_ENDSTOPS
|
169
|
|
- #error At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.
|
|
169
|
+ #error "At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE."
|
170
|
170
|
#endif
|
171
|
171
|
|
172
|
172
|
/**
|
173
|
173
|
* Required LCD language
|
174
|
174
|
*/
|
175
|
175
|
#if DISABLED(DOGLCD) && ENABLED(ULTRA_LCD) && !defined(DISPLAY_CHARSET_HD44780)
|
176
|
|
- #error You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller.
|
|
176
|
+ #error "You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller."
|
177
|
177
|
#endif
|
178
|
178
|
|
179
|
179
|
/**
|
180
|
180
|
* Bed Heating Options - PID vs Limit Switching
|
181
|
181
|
*/
|
182
|
182
|
#if ENABLED(PIDTEMPBED) && ENABLED(BED_LIMIT_SWITCHING)
|
183
|
|
- #error To use BED_LIMIT_SWITCHING you must disable PIDTEMPBED.
|
|
183
|
+ #error "To use BED_LIMIT_SWITCHING you must disable PIDTEMPBED."
|
184
|
184
|
#endif
|
185
|
185
|
|
186
|
186
|
/**
|
|
@@ -188,16 +188,16 @@
|
188
|
188
|
*/
|
189
|
189
|
#if ENABLED(MESH_BED_LEVELING)
|
190
|
190
|
#if ENABLED(DELTA)
|
191
|
|
- #error MESH_BED_LEVELING does not yet support DELTA printers.
|
|
191
|
+ #error "MESH_BED_LEVELING does not yet support DELTA printers."
|
192
|
192
|
#endif
|
193
|
193
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
194
|
|
- #error Select AUTO_BED_LEVELING_FEATURE or MESH_BED_LEVELING, not both.
|
|
194
|
+ #error "Select AUTO_BED_LEVELING_FEATURE or MESH_BED_LEVELING, not both."
|
195
|
195
|
#endif
|
196
|
196
|
#if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
|
197
|
|
- #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8.
|
|
197
|
+ #error "MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8."
|
198
|
198
|
#endif
|
199
|
199
|
#elif ENABLED(MANUAL_BED_LEVELING)
|
200
|
|
- #error MESH_BED_LEVELING is required for MANUAL_BED_LEVELING.
|
|
200
|
+ #error "MESH_BED_LEVELING is required for MANUAL_BED_LEVELING."
|
201
|
201
|
#endif
|
202
|
202
|
|
203
|
203
|
/**
|
|
@@ -210,21 +210,21 @@
|
210
|
210
|
* A probe needs a pin
|
211
|
211
|
*/
|
212
|
212
|
#if !PROBE_PIN_CONFIGURED
|
213
|
|
- #error A probe needs a pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN.
|
|
213
|
+ #error "A probe needs a pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."
|
214
|
214
|
#endif
|
215
|
215
|
|
216
|
216
|
/**
|
217
|
217
|
* Z_MIN_PIN and Z_MIN_PROBE_PIN can't co-exist when Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
218
|
218
|
*/
|
219
|
219
|
#if HAS_Z_MIN && HAS_Z_MIN_PROBE_PIN && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
220
|
|
- #error A probe cannot have more than one pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN.
|
|
220
|
+ #error "A probe cannot have more than one pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."
|
221
|
221
|
#endif
|
222
|
222
|
|
223
|
223
|
/**
|
224
|
224
|
* Make sure the plug is enabled if it's used
|
225
|
225
|
*/
|
226
|
226
|
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && DISABLED(USE_ZMIN_PLUG)
|
227
|
|
- #error You must enable USE_ZMIN_PLUG if any probe or endstop is connected to the ZMIN plug.
|
|
227
|
+ #error "You must enable USE_ZMIN_PLUG if any probe or endstop is connected to the ZMIN plug."
|
228
|
228
|
#endif
|
229
|
229
|
|
230
|
230
|
/**
|
|
@@ -233,7 +233,7 @@
|
233
|
233
|
#if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(MECHANICAL_PROBE) || HAS_Z_ENDSTOP_SERVO || ENABLED(Z_PROBE_SLED))) \
|
234
|
234
|
|| (ENABLED(MECHANICAL_PROBE) && (HAS_Z_ENDSTOP_SERVO || ENABLED(Z_PROBE_SLED))) \
|
235
|
235
|
|| (HAS_Z_ENDSTOP_SERVO && ENABLED(Z_PROBE_SLED))
|
236
|
|
- #error Please define only one type of probe: Z Servo, MECHANICAL_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE.
|
|
236
|
+ #error "Please define only one type of probe: Z Servo, MECHANICAL_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
|
237
|
237
|
#endif
|
238
|
238
|
|
239
|
239
|
/**
|
|
@@ -244,7 +244,7 @@
|
244
|
244
|
#elif ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
|
245
|
245
|
#error "Don't enable DISABLE_Z_MIN_PROBE_ENDSTOP with Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN."
|
246
|
246
|
#elif ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) && DISABLED(Z_MIN_PROBE_ENDSTOP)
|
247
|
|
- #error DISABLE_Z_MIN_PROBE_ENDSTOP requires Z_MIN_PROBE_ENDSTOP to be set.
|
|
247
|
+ #error "DISABLE_Z_MIN_PROBE_ENDSTOP requires Z_MIN_PROBE_ENDSTOP to be set."
|
248
|
248
|
#endif
|
249
|
249
|
|
250
|
250
|
/**
|
|
@@ -256,16 +256,16 @@
|
256
|
256
|
#endif
|
257
|
257
|
// Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment.
|
258
|
258
|
//#ifndef NUM_SERVOS
|
259
|
|
- // #error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_MIN_PROBE_ENDSTOP.
|
|
259
|
+ // #error "You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_MIN_PROBE_ENDSTOP."
|
260
|
260
|
//#endif
|
261
|
261
|
//#if defined(NUM_SERVOS) && NUM_SERVOS < 1
|
262
|
|
- // #error You must have at least 1 servo defined for NUM_SERVOS to use Z_MIN_PROBE_ENDSTOP.
|
|
262
|
+ // #error "You must have at least 1 servo defined for NUM_SERVOS to use Z_MIN_PROBE_ENDSTOP."
|
263
|
263
|
//#endif
|
264
|
264
|
//#if Z_ENDSTOP_SERVO_NR < 0
|
265
|
|
- // #error You must have Z_ENDSTOP_SERVO_NR set to at least 0 or above to use Z_MIN_PROBE_ENDSTOP.
|
|
265
|
+ // #error "You must have Z_ENDSTOP_SERVO_NR set to at least 0 or above to use Z_MIN_PROBE_ENDSTOP."
|
266
|
266
|
//#endif
|
267
|
267
|
//#ifndef SERVO_ENDSTOP_ANGLES
|
268
|
|
- // #error You must have SERVO_ENDSTOP_ANGLES defined for Z Extend and Retract to use Z_MIN_PROBE_ENDSTOP.
|
|
268
|
+ // #error "You must have SERVO_ENDSTOP_ANGLES defined for Z Extend and Retract to use Z_MIN_PROBE_ENDSTOP."
|
269
|
269
|
//#endif
|
270
|
270
|
#endif
|
271
|
271
|
|
|
@@ -275,7 +275,7 @@
|
275
|
275
|
* Require some kind of probe for bed leveling
|
276
|
276
|
*/
|
277
|
277
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
278
|
|
- #error AUTO_BED_LEVELING_FEATURE requires a probe! Define a Z Servo, MECHANICAL_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE.
|
|
278
|
+ #error "AUTO_BED_LEVELING_FEATURE requires a probe! Define a Z Servo, MECHANICAL_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
|
279
|
279
|
#endif
|
280
|
280
|
|
281
|
281
|
#endif
|
|
@@ -291,9 +291,9 @@
|
291
|
291
|
#if !PIN_EXISTS(Z_MIN)
|
292
|
292
|
#if !PIN_EXISTS(Z_MIN_PROBE) || (DISABLED(Z_MIN_PROBE_ENDSTOP) || ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)) // It's possible for someone to set a pin for the Z probe, but not enable it.
|
293
|
293
|
#if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
|
294
|
|
- #error You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
|
|
294
|
+ #error "You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST."
|
295
|
295
|
#else
|
296
|
|
- #error AUTO_BED_LEVELING_FEATURE requires a Z_MIN or Z_PROBE endstop. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin.
|
|
296
|
+ #error "AUTO_BED_LEVELING_FEATURE requires a Z_MIN or Z_PROBE endstop. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin."
|
297
|
297
|
#endif
|
298
|
298
|
#endif
|
299
|
299
|
#endif
|
|
@@ -305,9 +305,9 @@
|
305
|
305
|
#ifndef DELTA_PROBEABLE_RADIUS
|
306
|
306
|
// Be sure points are in the right order
|
307
|
307
|
#if LEFT_PROBE_BED_POSITION > RIGHT_PROBE_BED_POSITION
|
308
|
|
- #error LEFT_PROBE_BED_POSITION must be less than RIGHT_PROBE_BED_POSITION.
|
|
308
|
+ #error "LEFT_PROBE_BED_POSITION must be less than RIGHT_PROBE_BED_POSITION."
|
309
|
309
|
#elif FRONT_PROBE_BED_POSITION > BACK_PROBE_BED_POSITION
|
310
|
|
- #error FRONT_PROBE_BED_POSITION must be less than BACK_PROBE_BED_POSITION.
|
|
310
|
+ #error "FRONT_PROBE_BED_POSITION must be less than BACK_PROBE_BED_POSITION."
|
311
|
311
|
#endif
|
312
|
312
|
// Make sure probing points are reachable
|
313
|
313
|
#if LEFT_PROBE_BED_POSITION < MIN_PROBE_X
|
|
@@ -345,7 +345,7 @@
|
345
|
345
|
* Filament Width Sensor
|
346
|
346
|
*/
|
347
|
347
|
#if ENABLED(FILAMENT_WIDTH_SENSOR) && !HAS_FILAMENT_WIDTH_SENSOR
|
348
|
|
- #error FILAMENT_WIDTH_SENSOR requires a FILWIDTH_PIN to be defined.
|
|
348
|
+ #error "FILAMENT_WIDTH_SENSOR requires a FILWIDTH_PIN to be defined."
|
349
|
349
|
#endif
|
350
|
350
|
|
351
|
351
|
|
|
@@ -353,11 +353,11 @@
|
353
|
353
|
* ULTIPANEL encoder
|
354
|
354
|
*/
|
355
|
355
|
#if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL) && DISABLED(SR_LCD_2W_NL) && !defined(SHIFT_CLK)
|
356
|
|
- #error ULTIPANEL requires some kind of encoder.
|
|
356
|
+ #error "ULTIPANEL requires some kind of encoder."
|
357
|
357
|
#endif
|
358
|
358
|
|
359
|
359
|
#if ENCODER_PULSES_PER_STEP < 0
|
360
|
|
- #error ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead
|
|
360
|
+ #error "ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead"
|
361
|
361
|
#endif
|
362
|
362
|
|
363
|
363
|
/**
|
|
@@ -368,11 +368,11 @@
|
368
|
368
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
369
|
369
|
|
370
|
370
|
#if DISABLED(AUTO_BED_LEVELING_GRID)
|
371
|
|
- #error Only AUTO_BED_LEVELING_GRID is supported with DELTA.
|
|
371
|
+ #error "Only AUTO_BED_LEVELING_GRID is supported with DELTA."
|
372
|
372
|
#endif
|
373
|
373
|
|
374
|
374
|
#if ENABLED(Z_PROBE_SLED)
|
375
|
|
- #error You cannot use Z_PROBE_SLED with DELTA.
|
|
375
|
+ #error "You cannot use Z_PROBE_SLED with DELTA."
|
376
|
376
|
#endif
|
377
|
377
|
|
378
|
378
|
#endif
|
|
@@ -383,7 +383,7 @@
|
383
|
383
|
* Allen Key Z probe requires Auto Bed Leveling grid and Delta
|
384
|
384
|
*/
|
385
|
385
|
#if ENABLED(Z_PROBE_ALLEN_KEY) && !(ENABLED(AUTO_BED_LEVELING_GRID) && ENABLED(DELTA))
|
386
|
|
- #error Invalid use of Z_PROBE_ALLEN_KEY.
|
|
386
|
+ #error "Invalid use of Z_PROBE_ALLEN_KEY."
|
387
|
387
|
#endif
|
388
|
388
|
|
389
|
389
|
/**
|
|
@@ -394,10 +394,10 @@
|
394
|
394
|
|| !HAS_X2_ENABLE || !HAS_X2_STEP || !HAS_X2_DIR \
|
395
|
395
|
|| !defined(X2_HOME_POS) || !defined(X2_MIN_POS) || !defined(X2_MAX_POS) \
|
396
|
396
|
|| !HAS_X_MAX
|
397
|
|
- #error Missing or invalid definitions for DUAL_X_CARRIAGE mode.
|
|
397
|
+ #error "Missing or invalid definitions for DUAL_X_CARRIAGE mode."
|
398
|
398
|
#endif
|
399
|
399
|
#if X_HOME_DIR != -1 || X2_HOME_DIR != 1
|
400
|
|
- #error Please use canonical x-carriage assignment.
|
|
400
|
+ #error "Please use canonical x-carriage assignment."
|
401
|
401
|
#endif
|
402
|
402
|
#endif // DUAL_X_CARRIAGE
|
403
|
403
|
|
|
@@ -407,30 +407,30 @@
|
407
|
407
|
#if HAS_AUTO_FAN
|
408
|
408
|
#if HAS_FAN0
|
409
|
409
|
#if EXTRUDER_0_AUTO_FAN_PIN == FAN_PIN
|
410
|
|
- #error You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to FAN_PIN.
|
|
410
|
+ #error "You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to FAN_PIN."
|
411
|
411
|
#elif EXTRUDER_1_AUTO_FAN_PIN == FAN_PIN
|
412
|
|
- #error You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to FAN_PIN.
|
|
412
|
+ #error "You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to FAN_PIN."
|
413
|
413
|
#elif EXTRUDER_2_AUTO_FAN_PIN == FAN_PIN
|
414
|
|
- #error You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to FAN_PIN.
|
|
414
|
+ #error "You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to FAN_PIN."
|
415
|
415
|
#elif EXTRUDER_3_AUTO_FAN_PIN == FAN_PIN
|
416
|
|
- #error You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to FAN_PIN.
|
|
416
|
+ #error "You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to FAN_PIN."
|
417
|
417
|
#endif
|
418
|
418
|
#endif
|
419
|
419
|
#endif
|
420
|
420
|
|
421
|
421
|
#if HAS_FAN0 && CONTROLLERFAN_PIN == FAN_PIN
|
422
|
|
- #error You cannot set CONTROLLERFAN_PIN equal to FAN_PIN.
|
|
422
|
+ #error "You cannot set CONTROLLERFAN_PIN equal to FAN_PIN."
|
423
|
423
|
#endif
|
424
|
424
|
|
425
|
425
|
#if HAS_CONTROLLERFAN
|
426
|
426
|
#if EXTRUDER_0_AUTO_FAN_PIN == CONTROLLERFAN_PIN
|
427
|
|
- #error You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
|
|
427
|
+ #error "You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN."
|
428
|
428
|
#elif EXTRUDER_1_AUTO_FAN_PIN == CONTROLLERFAN_PIN
|
429
|
|
- #error You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
|
|
429
|
+ #error "You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN."
|
430
|
430
|
#elif EXTRUDER_2_AUTO_FAN_PIN == CONTROLLERFAN_PIN
|
431
|
|
- #error You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
|
|
431
|
+ #error "You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN."
|
432
|
432
|
#elif EXTRUDER_3_AUTO_FAN_PIN == CONTROLLERFAN_PIN
|
433
|
|
- #error You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
|
|
433
|
+ #error "You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN."
|
434
|
434
|
#endif
|
435
|
435
|
#endif
|
436
|
436
|
|
|
@@ -439,110 +439,110 @@
|
439
|
439
|
*/
|
440
|
440
|
#if EXTRUDERS > 3
|
441
|
441
|
#if TEMP_SENSOR_3 == 0
|
442
|
|
- #error TEMP_SENSOR_3 is required with 4 EXTRUDERS.
|
|
442
|
+ #error "TEMP_SENSOR_3 is required with 4 EXTRUDERS."
|
443
|
443
|
#elif !HAS_HEATER_3
|
444
|
|
- #error HEATER_3_PIN not defined for this board.
|
|
444
|
+ #error "HEATER_3_PIN not defined for this board."
|
445
|
445
|
#elif !PIN_EXISTS(TEMP_3)
|
446
|
|
- #error TEMP_3_PIN not defined for this board.
|
|
446
|
+ #error "TEMP_3_PIN not defined for this board."
|
447
|
447
|
#elif !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
|
448
|
|
- #error E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board.
|
|
448
|
+ #error "E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board."
|
449
|
449
|
#endif
|
450
|
450
|
#elif EXTRUDERS > 2
|
451
|
451
|
#if TEMP_SENSOR_2 == 0
|
452
|
|
- #error TEMP_SENSOR_2 is required with 3 or more EXTRUDERS.
|
|
452
|
+ #error "TEMP_SENSOR_2 is required with 3 or more EXTRUDERS."
|
453
|
453
|
#elif !HAS_HEATER_2
|
454
|
|
- #error HEATER_2_PIN not defined for this board.
|
|
454
|
+ #error "HEATER_2_PIN not defined for this board."
|
455
|
455
|
#elif !PIN_EXISTS(TEMP_2)
|
456
|
|
- #error TEMP_2_PIN not defined for this board.
|
|
456
|
+ #error "TEMP_2_PIN not defined for this board."
|
457
|
457
|
#elif !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
|
458
|
|
- #error E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board.
|
|
458
|
+ #error "E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board."
|
459
|
459
|
#endif
|
460
|
460
|
#elif EXTRUDERS > 1
|
461
|
461
|
#if TEMP_SENSOR_1 == 0
|
462
|
|
- #error TEMP_SENSOR_1 is required with 2 or more EXTRUDERS.
|
|
462
|
+ #error "TEMP_SENSOR_1 is required with 2 or more EXTRUDERS."
|
463
|
463
|
#elif !PIN_EXISTS(TEMP_1)
|
464
|
|
- #error TEMP_1_PIN not defined for this board.
|
|
464
|
+ #error "TEMP_1_PIN not defined for this board."
|
465
|
465
|
#elif !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
|
466
|
|
- #error E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board.
|
|
466
|
+ #error "E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board."
|
467
|
467
|
#endif
|
468
|
468
|
#endif
|
469
|
469
|
|
470
|
470
|
#if EXTRUDERS > 1 || ENABLED(HEATERS_PARALLEL)
|
471
|
471
|
#if !HAS_HEATER_1
|
472
|
|
- #error HEATER_1_PIN not defined for this board.
|
|
472
|
+ #error "HEATER_1_PIN not defined for this board."
|
473
|
473
|
#endif
|
474
|
474
|
#endif
|
475
|
475
|
|
476
|
476
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT) && TEMP_SENSOR_1 == 0
|
477
|
|
- #error TEMP_SENSOR_1 is required with TEMP_SENSOR_1_AS_REDUNDANT.
|
|
477
|
+ #error "TEMP_SENSOR_1 is required with TEMP_SENSOR_1_AS_REDUNDANT."
|
478
|
478
|
#endif
|
479
|
479
|
|
480
|
480
|
#if !HAS_HEATER_0
|
481
|
|
- #error HEATER_0_PIN not defined for this board.
|
|
481
|
+ #error "HEATER_0_PIN not defined for this board."
|
482
|
482
|
#elif !PIN_EXISTS(TEMP_0)
|
483
|
|
- #error TEMP_0_PIN not defined for this board.
|
|
483
|
+ #error "TEMP_0_PIN not defined for this board."
|
484
|
484
|
#elif !PIN_EXISTS(E0_STEP) || !PIN_EXISTS(E0_DIR) || !PIN_EXISTS(E0_ENABLE)
|
485
|
|
- #error E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board.
|
|
485
|
+ #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
|
486
|
486
|
#elif TEMP_SENSOR_0 == 0
|
487
|
|
- #error TEMP_SENSOR_0 is required.
|
|
487
|
+ #error "TEMP_SENSOR_0 is required."
|
488
|
488
|
#endif
|
489
|
489
|
|
490
|
490
|
/**
|
491
|
491
|
* Endstops
|
492
|
492
|
*/
|
493
|
493
|
#if DISABLED(USE_XMIN_PLUG) && DISABLED(USE_XMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _XMAX_ && Z2_USE_ENDSTOP <= _XMIN_)
|
494
|
|
- #error You must enable USE_XMIN_PLUG or USE_XMAX_PLUG
|
|
494
|
+ #error "You must enable USE_XMIN_PLUG or USE_XMAX_PLUG"
|
495
|
495
|
#elif DISABLED(USE_YMIN_PLUG) && DISABLED(USE_YMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _YMAX_ && Z2_USE_ENDSTOP <= _YMIN_)
|
496
|
|
- #error You must enable USE_YMIN_PLUG or USE_YMAX_PLUG
|
|
496
|
+ #error "You must enable USE_YMIN_PLUG or USE_YMAX_PLUG"
|
497
|
497
|
#elif DISABLED(USE_ZMIN_PLUG) && DISABLED(USE_ZMAX_PLUG) && !(ENABLED(Z_DUAL_ENDSTOPS) && Z2_USE_ENDSTOP >= _ZMAX_ && Z2_USE_ENDSTOP <= _ZMIN_)
|
498
|
|
- #error You must enable USE_ZMIN_PLUG or USE_ZMAX_PLUG
|
|
498
|
+ #error "You must enable USE_ZMIN_PLUG or USE_ZMAX_PLUG"
|
499
|
499
|
#elif ENABLED(Z_DUAL_ENDSTOPS) && !Z2_USE_ENDSTOP
|
500
|
|
- #error You must set Z2_USE_ENDSTOP with Z_DUAL_ENDSTOPS
|
|
500
|
+ #error "You must set Z2_USE_ENDSTOP with Z_DUAL_ENDSTOPS"
|
501
|
501
|
#endif
|
502
|
502
|
|
503
|
503
|
/**
|
504
|
504
|
* Warnings for old configurations
|
505
|
505
|
*/
|
506
|
506
|
#if WATCH_TEMP_PERIOD > 500
|
507
|
|
- #error WATCH_TEMP_PERIOD now uses seconds instead of milliseconds.
|
|
507
|
+ #error "WATCH_TEMP_PERIOD now uses seconds instead of milliseconds."
|
508
|
508
|
#elif DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
|
509
|
|
- #error Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS.
|
|
509
|
+ #error "Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS."
|
510
|
510
|
#elif DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
|
511
|
|
- #error Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED.
|
|
511
|
+ #error "Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED."
|
512
|
512
|
#elif ENABLED(COREXZ) && ENABLED(Z_LATE_ENABLE)
|
513
|
513
|
#error "Z_LATE_ENABLE can't be used with COREXZ."
|
514
|
514
|
#elif defined(X_HOME_RETRACT_MM)
|
515
|
|
- #error [XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM.
|
|
515
|
+ #error "[XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM."
|
516
|
516
|
#elif defined(PROBE_SERVO_DEACTIVATION_DELAY)
|
517
|
|
- #error PROBE_SERVO_DEACTIVATION_DELAY has been replaced with DEACTIVATE_SERVOS_AFTER_MOVE and SERVO_DEACTIVATION_DELAY.
|
|
517
|
+ #error "PROBE_SERVO_DEACTIVATION_DELAY has been replaced with DEACTIVATE_SERVOS_AFTER_MOVE and SERVO_DEACTIVATION_DELAY."
|
518
|
518
|
#elif defined(BEEPER)
|
519
|
|
- #error BEEPER is now BEEPER_PIN. Please update your pins definitions.
|
|
519
|
+ #error "BEEPER is now BEEPER_PIN. Please update your pins definitions."
|
520
|
520
|
#elif defined(SDCARDDETECT)
|
521
|
|
- #error SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions.
|
|
521
|
+ #error "SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions."
|
522
|
522
|
#elif defined(SDCARDDETECTINVERTED)
|
523
|
|
- #error SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration.
|
|
523
|
+ #error "SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration."
|
524
|
524
|
#elif defined(BTENABLED)
|
525
|
|
- #error BTENABLED is now BLUETOOTH. Please update your configuration.
|
|
525
|
+ #error "BTENABLED is now BLUETOOTH. Please update your configuration."
|
526
|
526
|
#elif defined(CUSTOM_MENDEL_NAME)
|
527
|
|
- #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
|
|
527
|
+ #error "CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration."
|
528
|
528
|
#elif defined(HAS_AUTOMATIC_VERSIONING)
|
529
|
|
- #error HAS_AUTOMATIC_VERSIONING is now USE_AUTOMATIC_VERSIONING. Please update your configuration.
|
|
529
|
+ #error "HAS_AUTOMATIC_VERSIONING is now USE_AUTOMATIC_VERSIONING. Please update your configuration."
|
530
|
530
|
#elif defined(ENABLE_AUTO_BED_LEVELING)
|
531
|
|
- #error ENABLE_AUTO_BED_LEVELING is now AUTO_BED_LEVELING_FEATURE. Please update your configuration.
|
|
531
|
+ #error "ENABLE_AUTO_BED_LEVELING is now AUTO_BED_LEVELING_FEATURE. Please update your configuration."
|
532
|
532
|
#elif defined(SDSLOW)
|
533
|
|
- #error SDSLOW deprecated. Set SPI_SPEED to SPI_HALF_SPEED instead.
|
|
533
|
+ #error "SDSLOW deprecated. Set SPI_SPEED to SPI_HALF_SPEED instead."
|
534
|
534
|
#elif defined(SDEXTRASLOW)
|
535
|
|
- #error SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead.
|
|
535
|
+ #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
|
536
|
536
|
#elif defined(Z_RAISE_BEFORE_HOMING)
|
537
|
|
- #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
|
|
537
|
+ #error "Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead."
|
538
|
538
|
#elif defined(FILAMENT_SENSOR)
|
539
|
|
- #error FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead.
|
|
539
|
+ #error "FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead."
|
540
|
540
|
#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
|
541
|
|
- #error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead.
|
|
541
|
+ #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
|
542
|
542
|
#elif ENABLED(Z_DUAL_ENDSTOPS) && !defined(Z2_USE_ENDSTOP)
|
543
|
|
- #error Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2
|
|
543
|
+ #error "Z_DUAL_ENDSTOPS settings are simplified. Just set Z2_USE_ENDSTOP to the endstop you want to repurpose for Z2"
|
544
|
544
|
#elif defined(LANGUAGE_INCLUDE)
|
545
|
|
- #error LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration.
|
|
545
|
+ #error "LANGUAGE_INCLUDE has been replaced by LCD_LANGUAGE. Please update your configuration."
|
546
|
546
|
#endif
|
547
|
547
|
|
548
|
548
|
#endif //SANITYCHECK_H
|