My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SanityCheck.h 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. /**
  2. * SanityCheck.h
  3. *
  4. * Test configuration values for errors at compile-time.
  5. */
  6. #ifndef SANITYCHECK_H
  7. #define SANITYCHECK_H
  8. /**
  9. * Dual Stepper Drivers
  10. */
  11. #if ENABLED(Z_DUAL_STEPPER_DRIVERS) && ENABLED(Y_DUAL_STEPPER_DRIVERS)
  12. #error You cannot have dual stepper drivers for both Y and Z.
  13. #endif
  14. /**
  15. * Progress Bar
  16. */
  17. #if ENABLED(LCD_PROGRESS_BAR)
  18. #if DISABLED(SDSUPPORT)
  19. #error LCD_PROGRESS_BAR requires SDSUPPORT.
  20. #endif
  21. #if ENABLED(DOGLCD)
  22. #error LCD_PROGRESS_BAR does not apply to graphical displays.
  23. #endif
  24. #if ENABLED(FILAMENT_LCD_DISPLAY)
  25. #error LCD_PROGRESS_BAR and FILAMENT_LCD_DISPLAY are not fully compatible. Comment out this line to use both.
  26. #endif
  27. #endif
  28. /**
  29. * Babystepping
  30. */
  31. #if ENABLED(BABYSTEPPING)
  32. #if DISABLED(ULTRA_LCD)
  33. #error BABYSTEPPING requires an LCD controller.
  34. #endif
  35. #if ENABLED(SCARA)
  36. #error BABYSTEPPING is not implemented for SCARA yet.
  37. #endif
  38. #if ENABLED(DELTA) && ENABLED(BABYSTEP_XY)
  39. #error BABYSTEPPING only implemented for Z axis on deltabots.
  40. #endif
  41. #endif
  42. /**
  43. * Filament Change with Extruder Runout Prevention
  44. */
  45. #if ENABLED(FILAMENTCHANGEENABLE) && ENABLED(EXTRUDER_RUNOUT_PREVENT)
  46. #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE.
  47. #endif
  48. /**
  49. * Options only for EXTRUDERS > 1
  50. */
  51. #if EXTRUDERS > 1
  52. #if EXTRUDERS > 4
  53. #error The maximum number of EXTRUDERS in Marlin is 4.
  54. #endif
  55. #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
  56. #error EXTRUDERS must be 1 with TEMP_SENSOR_1_AS_REDUNDANT.
  57. #endif
  58. #if ENABLED(HEATERS_PARALLEL)
  59. #error EXTRUDERS must be 1 with HEATERS_PARALLEL.
  60. #endif
  61. #if ENABLED(Y_DUAL_STEPPER_DRIVERS)
  62. #error EXTRUDERS must be 1 with Y_DUAL_STEPPER_DRIVERS.
  63. #endif
  64. #if ENABLED(Z_DUAL_STEPPER_DRIVERS)
  65. #error EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS.
  66. #endif
  67. #endif // EXTRUDERS > 1
  68. /**
  69. * Limited number of servos
  70. */
  71. #if NUM_SERVOS > 4
  72. #error The maximum number of SERVOS in Marlin is 4.
  73. #endif
  74. #if defined(NUM_SERVOS) && NUM_SERVOS > 0
  75. #if X_ENDSTOP_SERVO_NR >= 0 || Y_ENDSTOP_SERVO_NR >= 0 || Z_ENDSTOP_SERVO_NR >= 0
  76. #if X_ENDSTOP_SERVO_NR >= NUM_SERVOS
  77. #error X_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
  78. #elif Y_ENDSTOP_SERVO_NR >= NUM_SERVOS
  79. #error Y_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
  80. #elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
  81. #error Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS.
  82. #endif
  83. #endif
  84. #endif
  85. /**
  86. * Servo deactivation depends on servo endstops
  87. */
  88. #if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_SERVO_ENDSTOPS
  89. #error At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.
  90. #endif
  91. /**
  92. * Required LCD language
  93. */
  94. #if DISABLED(DOGLCD) && ENABLED(ULTRA_LCD) && DISABLED(DISPLAY_CHARSET_HD44780_JAPAN) && DISABLED(DISPLAY_CHARSET_HD44780_WESTERN) && DISABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
  95. #error You must enable either DISPLAY_CHARSET_HD44780_JAPAN or DISPLAY_CHARSET_HD44780_WESTERN or DISPLAY_CHARSET_HD44780_CYRILLIC for your LCD controller.
  96. #endif
  97. /**
  98. * Mesh Bed Leveling
  99. */
  100. #if ENABLED(MESH_BED_LEVELING)
  101. #if ENABLED(DELTA)
  102. #error MESH_BED_LEVELING does not yet support DELTA printers.
  103. #endif
  104. #if ENABLED(AUTO_BED_LEVELING_FEATURE)
  105. #error Select AUTO_BED_LEVELING_FEATURE or MESH_BED_LEVELING, not both.
  106. #endif
  107. #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
  108. #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8.
  109. #endif
  110. #elif ENABLED(MANUAL_BED_LEVELING)
  111. #error MESH_BED_LEVELING is required for MANUAL_BED_LEVELING.
  112. #endif
  113. /**
  114. * Probes
  115. */
  116. /**
  117. * A probe needs a pin
  118. */
  119. #if (!((HAS_Z_MIN && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)) || HAS_Z_PROBE )) && ( ENABLED(FIX_MOUNTED_PROBE) || defined(Z_ENDSTOP_SERVO_NR) || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED))
  120. #error A probe needs a pin! [Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN || HAS_Z_PROBE]
  121. #endif
  122. #if ((HAS_Z_MIN && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)) && HAS_Z_PROBE) && ( ENABLED(FIX_MOUNTED_PROBE) || defined(Z_ENDSTOP_SERVO_NR) || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED))
  123. #error A probe should not be connected to more then one pin! [Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN || HAS_Z_PROBE]
  124. #endif
  125. /**
  126. * Require one kind of probe
  127. */
  128. #if ENABLED(AUTO_BED_LEVELING_FEATURE) && !( ENABLED(FIX_MOUNTED_PROBE) || defined(Z_ENDSTOP_SERVO_NR) || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED))
  129. #error For AUTO_BED_LEVELING_FEATURE define one kind of probe! {Servo | Z_PROBE_ALLEN_KEY | Z_PROBE_SLED | FIX_MOUNTED_PROBE]
  130. #endif
  131. #if ENABLED(Z_SAFE_HOMING)&& !( ENABLED(FIX_MOUNTED_PROBE) || defined(Z_ENDSTOP_SERVO_NR) || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED))
  132. #error For Z_SAFE_HOMING define one kind of probe! {Servo | Z_PROBE_ALLEN_KEY | Z_PROBE_SLED | FIX_MOUNTED_PROBE]
  133. #endif
  134. // To do: Fail with more then one probe defined
  135. /**
  136. * Auto Bed Leveling
  137. */
  138. #if ENABLED(AUTO_BED_LEVELING_FEATURE)
  139. /**
  140. * Require a Z min pin
  141. */
  142. #if !PIN_EXISTS(Z_MIN)
  143. #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.
  144. #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
  145. #error You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
  146. #else
  147. #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.
  148. #endif
  149. #endif
  150. #endif
  151. /**
  152. * Require a Z probe pin if Z_MIN_PROBE_ENDSTOP is enabled.
  153. */
  154. #if ENABLED(Z_MIN_PROBE_ENDSTOP)
  155. #if !PIN_EXISTS(Z_MIN_PROBE)
  156. #error You must have a Z_MIN_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_MIN_PROBE_ENDSTOP.
  157. #endif
  158. // Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment.
  159. //#ifndef NUM_SERVOS
  160. // #error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_MIN_PROBE_ENDSTOP.
  161. //#endif
  162. //#if defined(NUM_SERVOS) && NUM_SERVOS < 1
  163. // #error You must have at least 1 servo defined for NUM_SERVOS to use Z_MIN_PROBE_ENDSTOP.
  164. //#endif
  165. //#if Z_ENDSTOP_SERVO_NR < 0
  166. // #error You must have Z_ENDSTOP_SERVO_NR set to at least 0 or above to use Z_MIN_PROBE_ENDSTOP.
  167. //#endif
  168. //#ifndef SERVO_ENDSTOP_ANGLES
  169. // #error You must have SERVO_ENDSTOP_ANGLES defined for Z Extend and Retract to use Z_MIN_PROBE_ENDSTOP.
  170. //#endif
  171. #endif
  172. /**
  173. * Check if Probe_Offset * Grid Points is greater than Probing Range
  174. */
  175. #if ENABLED(AUTO_BED_LEVELING_GRID)
  176. #ifndef DELTA_PROBABLE_RADIUS
  177. // Be sure points are in the right order
  178. #if LEFT_PROBE_BED_POSITION > RIGHT_PROBE_BED_POSITION
  179. #error LEFT_PROBE_BED_POSITION must be less than RIGHT_PROBE_BED_POSITION.
  180. #elif FRONT_PROBE_BED_POSITION > BACK_PROBE_BED_POSITION
  181. #error FRONT_PROBE_BED_POSITION must be less than BACK_PROBE_BED_POSITION.
  182. #endif
  183. // Make sure probing points are reachable
  184. #if LEFT_PROBE_BED_POSITION < MIN_PROBE_X
  185. #error "The given LEFT_PROBE_BED_POSITION can't be reached by the Z probe."
  186. #elif RIGHT_PROBE_BED_POSITION > MAX_PROBE_X
  187. #error "The given RIGHT_PROBE_BED_POSITION can't be reached by the Z probe."
  188. #elif FRONT_PROBE_BED_POSITION < MIN_PROBE_Y
  189. #error "The given FRONT_PROBE_BED_POSITION can't be reached by the Z probe."
  190. #elif BACK_PROBE_BED_POSITION > MAX_PROBE_Y
  191. #error "The given BACK_PROBE_BED_POSITION can't be reached by the Z probe."
  192. #endif
  193. #endif
  194. #else // !AUTO_BED_LEVELING_GRID
  195. // Check the triangulation points
  196. #if ABL_PROBE_PT_1_X < MIN_PROBE_X || ABL_PROBE_PT_1_X > MAX_PROBE_X
  197. #error "The given ABL_PROBE_PT_1_X can't be reached by the Z probe."
  198. #elif ABL_PROBE_PT_2_X < MIN_PROBE_X || ABL_PROBE_PT_2_X > MAX_PROBE_X
  199. #error "The given ABL_PROBE_PT_2_X can't be reached by the Z probe."
  200. #elif ABL_PROBE_PT_3_X < MIN_PROBE_X || ABL_PROBE_PT_3_X > MAX_PROBE_X
  201. #error "The given ABL_PROBE_PT_3_X can't be reached by the Z probe."
  202. #elif ABL_PROBE_PT_1_Y < MIN_PROBE_Y || ABL_PROBE_PT_1_Y > MAX_PROBE_Y
  203. #error "The given ABL_PROBE_PT_1_Y can't be reached by the Z probe."
  204. #elif ABL_PROBE_PT_2_Y < MIN_PROBE_Y || ABL_PROBE_PT_2_Y > MAX_PROBE_Y
  205. #error "The given ABL_PROBE_PT_2_Y can't be reached by the Z probe."
  206. #elif ABL_PROBE_PT_3_Y < MIN_PROBE_Y || ABL_PROBE_PT_3_Y > MAX_PROBE_Y
  207. #error "The given ABL_PROBE_PT_3_Y can't be reached by the Z probe."
  208. #endif
  209. #endif // !AUTO_BED_LEVELING_GRID
  210. #endif // AUTO_BED_LEVELING_FEATURE
  211. /**
  212. * ULTIPANEL encoder
  213. */
  214. #if ENABLED(ULTIPANEL) && DISABLED(NEWPANEL) && DISABLED(SR_LCD_2W_NL) && !defined(SHIFT_CLK)
  215. #error ULTIPANEL requires some kind of encoder.
  216. #endif
  217. /**
  218. * Delta has limited bed leveling options
  219. */
  220. #if ENABLED(DELTA)
  221. #if ENABLED(AUTO_BED_LEVELING_FEATURE)
  222. #if DISABLED(AUTO_BED_LEVELING_GRID)
  223. #error Only AUTO_BED_LEVELING_GRID is supported with DELTA.
  224. #endif
  225. #if ENABLED(Z_PROBE_SLED)
  226. #error You cannot use Z_PROBE_SLED with DELTA.
  227. #endif
  228. #endif
  229. #endif
  230. /**
  231. * Allen Key Z probe requires Auto Bed Leveling grid and Delta
  232. */
  233. #if ENABLED(Z_PROBE_ALLEN_KEY) && !(ENABLED(AUTO_BED_LEVELING_GRID) && ENABLED(DELTA))
  234. #error Invalid use of Z_PROBE_ALLEN_KEY.
  235. #endif
  236. /**
  237. * Dual X Carriage requirements
  238. */
  239. #if ENABLED(DUAL_X_CARRIAGE)
  240. #if EXTRUDERS == 1 || ENABLED(COREXY) \
  241. || !HAS_X2_ENABLE || !HAS_X2_STEP || !HAS_X2_DIR \
  242. || !defined(X2_HOME_POS) || !defined(X2_MIN_POS) || !defined(X2_MAX_POS) \
  243. || !HAS_X_MAX
  244. #error Missing or invalid definitions for DUAL_X_CARRIAGE mode.
  245. #endif
  246. #if X_HOME_DIR != -1 || X2_HOME_DIR != 1
  247. #error Please use canonical x-carriage assignment.
  248. #endif
  249. #endif // DUAL_X_CARRIAGE
  250. /**
  251. * Make sure auto fan pins don't conflict with the fan pin
  252. */
  253. #if HAS_AUTO_FAN
  254. #if HAS_FAN0
  255. #if EXTRUDER_0_AUTO_FAN_PIN == FAN_PIN
  256. #error You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to FAN_PIN.
  257. #elif EXTRUDER_1_AUTO_FAN_PIN == FAN_PIN
  258. #error You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to FAN_PIN.
  259. #elif EXTRUDER_2_AUTO_FAN_PIN == FAN_PIN
  260. #error You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to FAN_PIN.
  261. #elif EXTRUDER_3_AUTO_FAN_PIN == FAN_PIN
  262. #error You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to FAN_PIN.
  263. #endif
  264. #endif
  265. #endif
  266. #if HAS_FAN0 && CONTROLLERFAN_PIN == FAN_PIN
  267. #error You cannot set CONTROLLERFAN_PIN equal to FAN_PIN.
  268. #endif
  269. #if HAS_CONTROLLERFAN
  270. #if EXTRUDER_0_AUTO_FAN_PIN == CONTROLLERFAN_PIN
  271. #error You cannot set EXTRUDER_0_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
  272. #elif EXTRUDER_1_AUTO_FAN_PIN == CONTROLLERFAN_PIN
  273. #error You cannot set EXTRUDER_1_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
  274. #elif EXTRUDER_2_AUTO_FAN_PIN == CONTROLLERFAN_PIN
  275. #error You cannot set EXTRUDER_2_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
  276. #elif EXTRUDER_3_AUTO_FAN_PIN == CONTROLLERFAN_PIN
  277. #error You cannot set EXTRUDER_3_AUTO_FAN_PIN equal to CONTROLLERFAN_PIN.
  278. #endif
  279. #endif
  280. /**
  281. * Test Heater, Temp Sensor, and Extruder Pins; Sensor Type must also be set.
  282. */
  283. #if EXTRUDERS > 3
  284. #if !HAS_HEATER_3
  285. #error HEATER_3_PIN not defined for this board.
  286. #elif !PIN_EXISTS(TEMP_3)
  287. #error TEMP_3_PIN not defined for this board.
  288. #elif !PIN_EXISTS(E3_STEP) || !PIN_EXISTS(E3_DIR) || !PIN_EXISTS(E3_ENABLE)
  289. #error E3_STEP_PIN, E3_DIR_PIN, or E3_ENABLE_PIN not defined for this board.
  290. #elif TEMP_SENSOR_3 == 0
  291. #error TEMP_SENSOR_3 is required with 4 EXTRUDERS.
  292. #endif
  293. #elif EXTRUDERS > 2
  294. #if !HAS_HEATER_2
  295. #error HEATER_2_PIN not defined for this board.
  296. #elif !PIN_EXISTS(TEMP_2)
  297. #error TEMP_2_PIN not defined for this board.
  298. #elif !PIN_EXISTS(E2_STEP) || !PIN_EXISTS(E2_DIR) || !PIN_EXISTS(E2_ENABLE)
  299. #error E2_STEP_PIN, E2_DIR_PIN, or E2_ENABLE_PIN not defined for this board.
  300. #elif TEMP_SENSOR_2 == 0
  301. #error TEMP_SENSOR_2 is required with 3 or more EXTRUDERS.
  302. #endif
  303. #elif EXTRUDERS > 1
  304. #if !PIN_EXISTS(TEMP_1)
  305. #error TEMP_1_PIN not defined for this board.
  306. #elif !PIN_EXISTS(E1_STEP) || !PIN_EXISTS(E1_DIR) || !PIN_EXISTS(E1_ENABLE)
  307. #error E1_STEP_PIN, E1_DIR_PIN, or E1_ENABLE_PIN not defined for this board.
  308. #endif
  309. #endif
  310. #if EXTRUDERS > 1 || ENABLED(HEATERS_PARALLEL)
  311. #if !HAS_HEATER_1
  312. #error HEATER_1_PIN not defined for this board.
  313. #endif
  314. #endif
  315. #if TEMP_SENSOR_1 == 0
  316. #if EXTRUDERS > 1
  317. #error TEMP_SENSOR_1 is required with 2 or more EXTRUDERS.
  318. #elif ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
  319. #error TEMP_SENSOR_1 is required with TEMP_SENSOR_1_AS_REDUNDANT.
  320. #endif
  321. #endif
  322. #if !HAS_HEATER_0
  323. #error HEATER_0_PIN not defined for this board.
  324. #elif !PIN_EXISTS(TEMP_0)
  325. #error TEMP_0_PIN not defined for this board.
  326. #elif !PIN_EXISTS(E0_STEP) || !PIN_EXISTS(E0_DIR) || !PIN_EXISTS(E0_ENABLE)
  327. #error E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board.
  328. #elif TEMP_SENSOR_0 == 0
  329. #error TEMP_SENSOR_0 is required.
  330. #endif
  331. /**
  332. * Warnings for old configurations
  333. */
  334. #if WATCH_TEMP_PERIOD > 500
  335. #error WATCH_TEMP_PERIOD now uses seconds instead of milliseconds.
  336. #elif DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
  337. #error Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS.
  338. #elif DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
  339. #error Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED.
  340. #elif ENABLED(COREXZ) && ENABLED(Z_LATE_ENABLE)
  341. #error "Z_LATE_ENABLE can't be used with COREXZ."
  342. #elif defined(X_HOME_RETRACT_MM)
  343. #error [XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM.
  344. #elif defined(PROBE_SERVO_DEACTIVATION_DELAY)
  345. #error PROBE_SERVO_DEACTIVATION_DELAY has been replaced with DEACTIVATE_SERVOS_AFTER_MOVE and SERVO_DEACTIVATION_DELAY.
  346. #elif defined(BEEPER)
  347. #error BEEPER is now BEEPER_PIN. Please update your pins definitions.
  348. #elif defined(SDCARDDETECT)
  349. #error SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions.
  350. #elif defined(SDCARDDETECTINVERTED)
  351. #error SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration.
  352. #elif defined(BTENABLED)
  353. #error BTENABLED is now BLUETOOTH. Please update your configuration.
  354. #elif defined(CUSTOM_MENDEL_NAME)
  355. #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
  356. #elif defined(HAS_AUTOMATIC_VERSIONING)
  357. #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
  358. #elif defined(ENABLE_AUTO_BED_LEVELING)
  359. #error ENABLE_AUTO_BED_LEVELING deprecated - use AUTO_BED_LEVELING_FEATURE instead
  360. #elif defined(SDSLOW)
  361. #error SDSLOW deprecated - set SPI_SPEED to SPI_HALF_SPEED instead
  362. #elif defined(SDEXTRASLOW)
  363. #error SDEXTRASLOW deprecated - set SPI_SPEED to SPI_QUARTER_SPEED instead
  364. #elif defined(Z_RAISE_BEFORE_HOMING)
  365. #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
  366. #endif
  367. #endif //SANITYCHECK_H