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.

Warnings.cpp 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Warnings.cpp
  24. * Test configuration values and give warnings at compile-time.
  25. */
  26. #include "MarlinConfig.h"
  27. //
  28. // Warnings! Located here so they will appear just once in the build output.
  29. //
  30. #if ENABLED(MARLIN_DEV_MODE)
  31. #warning "WARNING! Disable MARLIN_DEV_MODE for the final build!"
  32. #endif
  33. // Safety Features
  34. #if DISABLED(USE_WATCHDOG)
  35. #warning "Safety Alert! Enable USE_WATCHDOG for the final build!"
  36. #endif
  37. #if HAS_HOTEND && DISABLED(THERMAL_PROTECTION_HOTENDS)
  38. #warning "Safety Alert! Enable THERMAL_PROTECTION_HOTENDS for the final build!"
  39. #endif
  40. #if HAS_HEATED_BED && DISABLED(THERMAL_PROTECTION_BED)
  41. #warning "Safety Alert! Enable THERMAL_PROTECTION_BED for the final build!"
  42. #endif
  43. #if HAS_HEATED_CHAMBER && DISABLED(THERMAL_PROTECTION_CHAMBER)
  44. #warning "Safety Alert! Enable THERMAL_PROTECTION_CHAMBER for the final build!"
  45. #endif
  46. #if HAS_COOLER && DISABLED(THERMAL_PROTECTION_COOLER)
  47. #warning "Safety Alert! Enable THERMAL_PROTECTION_COOLER for the final build!"
  48. #endif
  49. #if ANY_THERMISTOR_IS(998) || ANY_THERMISTOR_IS(999)
  50. #warning "Warning! Don't use dummy thermistors (998/999) for final build!"
  51. #endif
  52. #if NONE(HAS_RESUME_CONTINUE, HOST_PROMPT_SUPPORT)
  53. #warning "Your Configuration provides no method to acquire user feedback!"
  54. #endif
  55. #if MB(DUE3DOM_MINI) && PIN_EXISTS(TEMP_2) && !TEMP_SENSOR_BOARD
  56. #warning "Onboard temperature sensor for BOARD_DUE3DOM_MINI has moved from TEMP_SENSOR_2 (TEMP_2_PIN) to TEMP_SENSOR_BOARD (TEMP_BOARD_PIN)."
  57. #elif MB(BTT_SKR_E3_TURBO) && PIN_EXISTS(TEMP_2) && !TEMP_SENSOR_BOARD
  58. #warning "Onboard temperature sensor for BOARD_BTT_SKR_E3_TURBO has moved from TEMP_SENSOR_2 (TEMP_2_PIN) to TEMP_SENSOR_BOARD (TEMP_BOARD_PIN)."
  59. #endif
  60. #ifndef NO_AUTO_ASSIGN_WARNING
  61. #if AUTO_ASSIGNED_X2_STEPPER
  62. #warning "Note: Auto-assigned X2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  63. #endif
  64. #if AUTO_ASSIGNED_X2_MS1
  65. #warning "Note: Auto-assigned X2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  66. #endif
  67. #if AUTO_ASSIGNED_X2_MS2
  68. #warning "Note: Auto-assigned X2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  69. #endif
  70. #if AUTO_ASSIGNED_X2_MS3
  71. #warning "Note: Auto-assigned X2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  72. #endif
  73. #if AUTO_ASSIGNED_X2_CS
  74. #warning "Note: Auto-assigned X2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  75. #endif
  76. #if AUTO_ASSIGNED_X2_DIAG
  77. #if X2_USE_ENDSTOP == _XMIN_
  78. #warning "Note: Auto-assigned X2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  79. #elif X2_USE_ENDSTOP == _XMAX_
  80. #warning "Note: Auto-assigned X2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  81. #elif X2_USE_ENDSTOP == _XSTOP_
  82. #warning "Note: Auto-assigned X2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  83. #elif X2_USE_ENDSTOP == _YMIN_
  84. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  85. #elif X2_USE_ENDSTOP == _YMAX_
  86. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  87. #elif X2_USE_ENDSTOP == _YSTOP_
  88. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  89. #elif X2_USE_ENDSTOP == _ZMIN_
  90. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  91. #elif X2_USE_ENDSTOP == _ZMAX_
  92. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  93. #elif X2_USE_ENDSTOP == _ZSTOP_
  94. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  95. #elif X2_USE_ENDSTOP == _XDIAG_
  96. #warning "Note: Auto-assigned X2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  97. #elif X2_USE_ENDSTOP == _YDIAG_
  98. #warning "Note: Auto-assigned X2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  99. #elif X2_USE_ENDSTOP == _ZDIAG_
  100. #warning "Note: Auto-assigned X2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  101. #elif X2_USE_ENDSTOP == _E0DIAG_
  102. #warning "Note: Auto-assigned X2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  103. #elif X2_USE_ENDSTOP == _E1DIAG_
  104. #warning "Note: Auto-assigned X2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  105. #elif X2_USE_ENDSTOP == _E2DIAG_
  106. #warning "Note: Auto-assigned X2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  107. #elif X2_USE_ENDSTOP == _E3DIAG_
  108. #warning "Note: Auto-assigned X2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  109. #elif X2_USE_ENDSTOP == _E4DIAG_
  110. #warning "Note: Auto-assigned X2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  111. #elif X2_USE_ENDSTOP == _E5DIAG_
  112. #warning "Note: Auto-assigned X2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  113. #elif X2_USE_ENDSTOP == _E6DIAG_
  114. #warning "Note: Auto-assigned X2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  115. #elif X2_USE_ENDSTOP == _E7DIAG_
  116. #warning "Note: Auto-assigned X2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  117. #endif
  118. #endif
  119. #if AUTO_ASSIGNED_Y2_STEPPER
  120. #warning "Note: Auto-assigned Y2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  121. #endif
  122. #if AUTO_ASSIGNED_Y2_MS1
  123. #warning "Note: Auto-assigned Y2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  124. #endif
  125. #if AUTO_ASSIGNED_Y2_MS2
  126. #warning "Note: Auto-assigned Y2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  127. #endif
  128. #if AUTO_ASSIGNED_Y2_MS3
  129. #warning "Note: Auto-assigned Y2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  130. #endif
  131. #if AUTO_ASSIGNED_Y2_CS
  132. #warning "Note: Auto-assigned Y2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  133. #endif
  134. #if AUTO_ASSIGNED_Y2_DIAG
  135. #if Y2_USE_ENDSTOP == _XMIN_
  136. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  137. #elif Y2_USE_ENDSTOP == _XMAX_
  138. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  139. #elif Y2_USE_ENDSTOP == _XSTOP_
  140. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  141. #elif Y2_USE_ENDSTOP == _YMIN_
  142. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  143. #elif Y2_USE_ENDSTOP == _YMAX_
  144. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  145. #elif Y2_USE_ENDSTOP == _YSTOP_
  146. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  147. #elif Y2_USE_ENDSTOP == _ZMIN_
  148. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  149. #elif Y2_USE_ENDSTOP == _ZMAX_
  150. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  151. #elif Y2_USE_ENDSTOP == _ZSTOP_
  152. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  153. #elif Y2_USE_ENDSTOP == _XDIAG_
  154. #warning "Note: Auto-assigned Y2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  155. #elif Y2_USE_ENDSTOP == _YDIAG_
  156. #warning "Note: Auto-assigned Y2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  157. #elif Y2_USE_ENDSTOP == _ZDIAG_
  158. #warning "Note: Auto-assigned Y2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  159. #elif Y2_USE_ENDSTOP == _E0DIAG_
  160. #warning "Note: Auto-assigned Y2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  161. #elif Y2_USE_ENDSTOP == _E1DIAG_
  162. #warning "Note: Auto-assigned Y2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  163. #elif Y2_USE_ENDSTOP == _E2DIAG_
  164. #warning "Note: Auto-assigned Y2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  165. #elif Y2_USE_ENDSTOP == _E3DIAG_
  166. #warning "Note: Auto-assigned Y2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  167. #elif Y2_USE_ENDSTOP == _E4DIAG_
  168. #warning "Note: Auto-assigned Y2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  169. #elif Y2_USE_ENDSTOP == _E5DIAG_
  170. #warning "Note: Auto-assigned Y2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  171. #elif Y2_USE_ENDSTOP == _E6DIAG_
  172. #warning "Note: Auto-assigned Y2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  173. #elif Y2_USE_ENDSTOP == _E7DIAG_
  174. #warning "Note: Auto-assigned Y2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  175. #endif
  176. #endif
  177. #if AUTO_ASSIGNED_Z2_STEPPER
  178. #warning "Note: Auto-assigned Z2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  179. #endif
  180. #if AUTO_ASSIGNED_Z2_MS1
  181. #warning "Note: Auto-assigned Z2_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  182. #endif
  183. #if AUTO_ASSIGNED_Z2_MS2
  184. #warning "Note: Auto-assigned Z2_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  185. #endif
  186. #if AUTO_ASSIGNED_Z2_MS3
  187. #warning "Note: Auto-assigned Z2_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  188. #endif
  189. #if AUTO_ASSIGNED_Z2_CS
  190. #warning "Note: Auto-assigned Z2_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  191. #endif
  192. #if AUTO_ASSIGNED_Z2_DIAG
  193. #if Z2_USE_ENDSTOP == _XMIN_
  194. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  195. #elif Z2_USE_ENDSTOP == _XMAX_
  196. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  197. #elif Z2_USE_ENDSTOP == _XSTOP_
  198. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  199. #elif Z2_USE_ENDSTOP == _YMIN_
  200. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  201. #elif Z2_USE_ENDSTOP == _YMAX_
  202. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  203. #elif Z2_USE_ENDSTOP == _YSTOP_
  204. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  205. #elif Z2_USE_ENDSTOP == _ZMIN_
  206. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  207. #elif Z2_USE_ENDSTOP == _ZMAX_
  208. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  209. #elif Z2_USE_ENDSTOP == _ZSTOP_
  210. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  211. #elif Z2_USE_ENDSTOP == _XDIAG_
  212. #warning "Note: Auto-assigned Z2_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  213. #elif Z2_USE_ENDSTOP == _YDIAG_
  214. #warning "Note: Auto-assigned Z2_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  215. #elif Z2_USE_ENDSTOP == _ZDIAG_
  216. #warning "Note: Auto-assigned Z2_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  217. #elif Z2_USE_ENDSTOP == _E0DIAG_
  218. #warning "Note: Auto-assigned Z2_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  219. #elif Z2_USE_ENDSTOP == _E1DIAG_
  220. #warning "Note: Auto-assigned Z2_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  221. #elif Z2_USE_ENDSTOP == _E2DIAG_
  222. #warning "Note: Auto-assigned Z2_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  223. #elif Z2_USE_ENDSTOP == _E3DIAG_
  224. #warning "Note: Auto-assigned Z2_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  225. #elif Z2_USE_ENDSTOP == _E4DIAG_
  226. #warning "Note: Auto-assigned Z2_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  227. #elif Z2_USE_ENDSTOP == _E5DIAG_
  228. #warning "Note: Auto-assigned Z2_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  229. #elif Z2_USE_ENDSTOP == _E6DIAG_
  230. #warning "Note: Auto-assigned Z2_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  231. #elif Z2_USE_ENDSTOP == _E7DIAG_
  232. #warning "Note: Auto-assigned Z2_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  233. #endif
  234. #endif
  235. #if AUTO_ASSIGNED_Z3_STEPPER
  236. #warning "Note: Auto-assigned Z3 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  237. #endif
  238. #if AUTO_ASSIGNED_Z3_CS
  239. #warning "Note: Auto-assigned Z3_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  240. #endif
  241. #if AUTO_ASSIGNED_Z3_MS1
  242. #warning "Note: Auto-assigned Z3_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  243. #endif
  244. #if AUTO_ASSIGNED_Z3_MS2
  245. #warning "Note: Auto-assigned Z3_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  246. #endif
  247. #if AUTO_ASSIGNED_Z3_MS3
  248. #warning "Note: Auto-assigned Z3_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  249. #endif
  250. #if AUTO_ASSIGNED_Z3_DIAG
  251. #if Z3_USE_ENDSTOP == _XMIN_
  252. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  253. #elif Z3_USE_ENDSTOP == _XMAX_
  254. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  255. #elif Z3_USE_ENDSTOP == _XSTOP_
  256. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  257. #elif Z3_USE_ENDSTOP == _YMIN_
  258. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  259. #elif Z3_USE_ENDSTOP == _YMAX_
  260. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  261. #elif Z3_USE_ENDSTOP == _YSTOP_
  262. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  263. #elif Z3_USE_ENDSTOP == _ZMIN_
  264. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  265. #elif Z3_USE_ENDSTOP == _ZMAX_
  266. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  267. #elif Z3_USE_ENDSTOP == _ZSTOP_
  268. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  269. #elif Z3_USE_ENDSTOP == _XDIAG_
  270. #warning "Note: Auto-assigned Z3_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  271. #elif Z3_USE_ENDSTOP == _YDIAG_
  272. #warning "Note: Auto-assigned Z3_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  273. #elif Z3_USE_ENDSTOP == _ZDIAG_
  274. #warning "Note: Auto-assigned Z3_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  275. #elif Z3_USE_ENDSTOP == _E0DIAG_
  276. #warning "Note: Auto-assigned Z3_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  277. #elif Z3_USE_ENDSTOP == _E1DIAG_
  278. #warning "Note: Auto-assigned Z3_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  279. #elif Z3_USE_ENDSTOP == _E2DIAG_
  280. #warning "Note: Auto-assigned Z3_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  281. #elif Z3_USE_ENDSTOP == _E3DIAG_
  282. #warning "Note: Auto-assigned Z3_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  283. #elif Z3_USE_ENDSTOP == _E4DIAG_
  284. #warning "Note: Auto-assigned Z3_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  285. #elif Z3_USE_ENDSTOP == _E5DIAG_
  286. #warning "Note: Auto-assigned Z3_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  287. #elif Z3_USE_ENDSTOP == _E6DIAG_
  288. #warning "Note: Auto-assigned Z3_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  289. #elif Z3_USE_ENDSTOP == _E7DIAG_
  290. #warning "Note: Auto-assigned Z3_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  291. #endif
  292. #endif
  293. #if AUTO_ASSIGNED_Z4_STEPPER
  294. #warning "Note: Auto-assigned Z4 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  295. #endif
  296. #if AUTO_ASSIGNED_Z4_CS
  297. #warning "Note: Auto-assigned Z4_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  298. #endif
  299. #if AUTO_ASSIGNED_Z4_MS1
  300. #warning "Note: Auto-assigned Z4_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  301. #endif
  302. #if AUTO_ASSIGNED_Z4_MS2
  303. #warning "Note: Auto-assigned Z4_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  304. #endif
  305. #if AUTO_ASSIGNED_Z4_MS3
  306. #warning "Note: Auto-assigned Z4_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  307. #endif
  308. #if AUTO_ASSIGNED_Z4_DIAG
  309. #if Z4_USE_ENDSTOP == _XMIN_
  310. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  311. #elif Z4_USE_ENDSTOP == _XMAX_
  312. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  313. #elif Z4_USE_ENDSTOP == _XSTOP_
  314. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  315. #elif Z4_USE_ENDSTOP == _YMIN_
  316. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  317. #elif Z4_USE_ENDSTOP == _YMAX_
  318. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  319. #elif Z4_USE_ENDSTOP == _YSTOP_
  320. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  321. #elif Z4_USE_ENDSTOP == _ZMIN_
  322. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  323. #elif Z4_USE_ENDSTOP == _ZMAX_
  324. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  325. #elif Z4_USE_ENDSTOP == _ZSTOP_
  326. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  327. #elif Z4_USE_ENDSTOP == _XDIAG_
  328. #warning "Note: Auto-assigned Z4_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  329. #elif Z4_USE_ENDSTOP == _YDIAG_
  330. #warning "Note: Auto-assigned Z4_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  331. #elif Z4_USE_ENDSTOP == _ZDIAG_
  332. #warning "Note: Auto-assigned Z4_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  333. #elif Z4_USE_ENDSTOP == _E0DIAG_
  334. #warning "Note: Auto-assigned Z4_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  335. #elif Z4_USE_ENDSTOP == _E1DIAG_
  336. #warning "Note: Auto-assigned Z4_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  337. #elif Z4_USE_ENDSTOP == _E2DIAG_
  338. #warning "Note: Auto-assigned Z4_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  339. #elif Z4_USE_ENDSTOP == _E3DIAG_
  340. #warning "Note: Auto-assigned Z4_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  341. #elif Z4_USE_ENDSTOP == _E4DIAG_
  342. #warning "Note: Auto-assigned Z4_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  343. #elif Z4_USE_ENDSTOP == _E5DIAG_
  344. #warning "Note: Auto-assigned Z4_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  345. #elif Z4_USE_ENDSTOP == _E6DIAG_
  346. #warning "Note: Auto-assigned Z4_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  347. #elif Z4_USE_ENDSTOP == _E7DIAG_
  348. #warning "Note: Auto-assigned Z4_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  349. #endif
  350. #endif
  351. #if AUTO_ASSIGNED_I_STEPPER
  352. #warning "Note: Auto-assigned I STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  353. #endif
  354. #if AUTO_ASSIGNED_I_CS
  355. #warning "Note: Auto-assigned I_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  356. #endif
  357. #if AUTO_ASSIGNED_I_MS1
  358. #warning "Note: Auto-assigned I_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  359. #endif
  360. #if AUTO_ASSIGNED_I_MS2
  361. #warning "Note: Auto-assigned I_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  362. #endif
  363. #if AUTO_ASSIGNED_I_MS3
  364. #warning "Note: Auto-assigned I_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  365. #endif
  366. #if AUTO_ASSIGNED_I_DIAG
  367. #if I_USE_ENDSTOP == _XMIN_
  368. #warning "Note: Auto-assigned I_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  369. #elif I_USE_ENDSTOP == _XMAX_
  370. #warning "Note: Auto-assigned I_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  371. #elif I_USE_ENDSTOP == _XSTOP_
  372. #warning "Note: Auto-assigned I_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  373. #elif I_USE_ENDSTOP == _YMIN_
  374. #warning "Note: Auto-assigned I_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  375. #elif I_USE_ENDSTOP == _YMAX_
  376. #warning "Note: Auto-assigned I_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  377. #elif I_USE_ENDSTOP == _YSTOP_
  378. #warning "Note: Auto-assigned I_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  379. #elif I_USE_ENDSTOP == _ZMIN_
  380. #warning "Note: Auto-assigned I_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  381. #elif I_USE_ENDSTOP == _ZMAX_
  382. #warning "Note: Auto-assigned I_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  383. #elif I_USE_ENDSTOP == _ZSTOP_
  384. #warning "Note: Auto-assigned I_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  385. #elif I_USE_ENDSTOP == _XDIAG_
  386. #warning "Note: Auto-assigned I_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  387. #elif I_USE_ENDSTOP == _YDIAG_
  388. #warning "Note: Auto-assigned I_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  389. #elif I_USE_ENDSTOP == _ZDIAG_
  390. #warning "Note: Auto-assigned I_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  391. #elif I_USE_ENDSTOP == _E0DIAG_
  392. #warning "Note: Auto-assigned I_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  393. #elif I_USE_ENDSTOP == _E1DIAG_
  394. #warning "Note: Auto-assigned I_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  395. #elif I_USE_ENDSTOP == _E2DIAG_
  396. #warning "Note: Auto-assigned I_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  397. #elif I_USE_ENDSTOP == _E3DIAG_
  398. #warning "Note: Auto-assigned I_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  399. #elif I_USE_ENDSTOP == _E4DIAG_
  400. #warning "Note: Auto-assigned I_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  401. #elif I_USE_ENDSTOP == _E5DIAG_
  402. #warning "Note: Auto-assigned I_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  403. #elif I_USE_ENDSTOP == _E6DIAG_
  404. #warning "Note: Auto-assigned I_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  405. #elif I_USE_ENDSTOP == _E7DIAG_
  406. #warning "Note: Auto-assigned I_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  407. #endif
  408. #endif
  409. #if AUTO_ASSIGNED_J_STEPPER
  410. #warning "Note: Auto-assigned J STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  411. #endif
  412. #if AUTO_ASSIGNED_J_CS
  413. #warning "Note: Auto-assigned J_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  414. #endif
  415. #if AUTO_ASSIGNED_J_MS1
  416. #warning "Note: Auto-assigned J_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  417. #endif
  418. #if AUTO_ASSIGNED_J_MS2
  419. #warning "Note: Auto-assigned J_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  420. #endif
  421. #if AUTO_ASSIGNED_J_MS3
  422. #warning "Note: Auto-assigned J_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  423. #endif
  424. #if AUTO_ASSIGNED_J_DIAG
  425. #if J_USE_ENDSTOP == _XMIN_
  426. #warning "Note: Auto-assigned J_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  427. #elif J_USE_ENDSTOP == _XMAX_
  428. #warning "Note: Auto-assigned J_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  429. #elif J_USE_ENDSTOP == _XSTOP_
  430. #warning "Note: Auto-assigned J_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  431. #elif J_USE_ENDSTOP == _YMIN_
  432. #warning "Note: Auto-assigned J_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  433. #elif J_USE_ENDSTOP == _YMAX_
  434. #warning "Note: Auto-assigned J_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  435. #elif J_USE_ENDSTOP == _YSTOP_
  436. #warning "Note: Auto-assigned J_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  437. #elif J_USE_ENDSTOP == _ZMIN_
  438. #warning "Note: Auto-assigned J_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  439. #elif J_USE_ENDSTOP == _ZMAX_
  440. #warning "Note: Auto-assigned J_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  441. #elif J_USE_ENDSTOP == _ZSTOP_
  442. #warning "Note: Auto-assigned J_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  443. #elif J_USE_ENDSTOP == _XDIAG_
  444. #warning "Note: Auto-assigned J_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  445. #elif J_USE_ENDSTOP == _YDIAG_
  446. #warning "Note: Auto-assigned J_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  447. #elif J_USE_ENDSTOP == _ZDIAG_
  448. #warning "Note: Auto-assigned J_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  449. #elif J_USE_ENDSTOP == _E0DIAG_
  450. #warning "Note: Auto-assigned J_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  451. #elif J_USE_ENDSTOP == _E1DIAG_
  452. #warning "Note: Auto-assigned J_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  453. #elif J_USE_ENDSTOP == _E2DIAG_
  454. #warning "Note: Auto-assigned J_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  455. #elif J_USE_ENDSTOP == _E3DIAG_
  456. #warning "Note: Auto-assigned J_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  457. #elif J_USE_ENDSTOP == _E4DIAG_
  458. #warning "Note: Auto-assigned J_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  459. #elif J_USE_ENDSTOP == _E5DIAG_
  460. #warning "Note: Auto-assigned J_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  461. #elif J_USE_ENDSTOP == _E6DIAG_
  462. #warning "Note: Auto-assigned J_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  463. #elif J_USE_ENDSTOP == _E7DIAG_
  464. #warning "Note: Auto-assigned J_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  465. #endif
  466. #endif
  467. #if AUTO_ASSIGNED_K_STEPPER
  468. #warning "Note: Auto-assigned K STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  469. #endif
  470. #if AUTO_ASSIGNED_K_CS
  471. #warning "Note: Auto-assigned K_CS_PIN to an unused En_CS_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  472. #endif
  473. #if AUTO_ASSIGNED_K_MS1
  474. #warning "Note: Auto-assigned K_MS1_PIN to an unused En_MS1_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  475. #endif
  476. #if AUTO_ASSIGNED_K_MS2
  477. #warning "Note: Auto-assigned K_MS2_PIN to an unused En_MS2_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  478. #endif
  479. #if AUTO_ASSIGNED_K_MS3
  480. #warning "Note: Auto-assigned K_MS3_PIN to an unused En_MS3_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  481. #endif
  482. #if AUTO_ASSIGNED_K_DIAG
  483. #if K_USE_ENDSTOP == _XMIN_
  484. #warning "Note: Auto-assigned K_DIAG_PIN to X_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  485. #elif K_USE_ENDSTOP == _XMAX_
  486. #warning "Note: Auto-assigned K_DIAG_PIN to X_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  487. #elif K_USE_ENDSTOP == _XSTOP_
  488. #warning "Note: Auto-assigned K_DIAG_PIN to X_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  489. #elif K_USE_ENDSTOP == _YMIN_
  490. #warning "Note: Auto-assigned K_DIAG_PIN to Y_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  491. #elif K_USE_ENDSTOP == _YMAX_
  492. #warning "Note: Auto-assigned K_DIAG_PIN to Y_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  493. #elif K_USE_ENDSTOP == _YSTOP_
  494. #warning "Note: Auto-assigned K_DIAG_PIN to Y_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  495. #elif K_USE_ENDSTOP == _ZMIN_
  496. #warning "Note: Auto-assigned K_DIAG_PIN to Z_MIN_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  497. #elif K_USE_ENDSTOP == _ZMAX_
  498. #warning "Note: Auto-assigned K_DIAG_PIN to Z_MAX_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  499. #elif K_USE_ENDSTOP == _ZSTOP_
  500. #warning "Note: Auto-assigned K_DIAG_PIN to Z_STOP_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  501. #elif K_USE_ENDSTOP == _XDIAG_
  502. #warning "Note: Auto-assigned K_DIAG_PIN to X_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  503. #elif K_USE_ENDSTOP == _YDIAG_
  504. #warning "Note: Auto-assigned K_DIAG_PIN to Y_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  505. #elif K_USE_ENDSTOP == _ZDIAG_
  506. #warning "Note: Auto-assigned K_DIAG_PIN to Z_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  507. #elif K_USE_ENDSTOP == _E0DIAG_
  508. #warning "Note: Auto-assigned K_DIAG_PIN to E0_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  509. #elif K_USE_ENDSTOP == _E1DIAG_
  510. #warning "Note: Auto-assigned K_DIAG_PIN to E1_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  511. #elif K_USE_ENDSTOP == _E2DIAG_
  512. #warning "Note: Auto-assigned K_DIAG_PIN to E2_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  513. #elif K_USE_ENDSTOP == _E3DIAG_
  514. #warning "Note: Auto-assigned K_DIAG_PIN to E3_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  515. #elif K_USE_ENDSTOP == _E4DIAG_
  516. #warning "Note: Auto-assigned K_DIAG_PIN to E4_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  517. #elif K_USE_ENDSTOP == _E5DIAG_
  518. #warning "Note: Auto-assigned K_DIAG_PIN to E5_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  519. #elif K_USE_ENDSTOP == _E6DIAG_
  520. #warning "Note: Auto-assigned K_DIAG_PIN to E6_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  521. #elif K_USE_ENDSTOP == _E7DIAG_
  522. #warning "Note: Auto-assigned K_DIAG_PIN to E7_DIAG_PIN. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  523. #endif
  524. #endif
  525. #if ENABLED(CHAMBER_FAN) && !defined(CHAMBER_FAN_INDEX)
  526. #warning "Note: Auto-assigned CHAMBER_FAN_INDEX to the first free FAN pin. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
  527. #endif
  528. #endif // !NO_AUTO_ASSIGN_WARNING
  529. #if IS_LEGACY_TFT
  530. #warning "Don't forget to update your TFT settings in Configuration.h."
  531. #endif
  532. // Ender 3 Pro (but, apparently all Creality 4.2.2 boards)
  533. #if ENABLED(EMIT_CREALITY_422_WARNING) || MB(CREALITY_V4)
  534. #warning "Creality 4.2.2 boards come with a variety of stepper drivers. Check the board label and set the correct *_DRIVER_TYPE! (C=HR4988, E=A4988, A=TMC2208, B=TMC2209, H=TMC2225)."
  535. #endif
  536. #if PRINTCOUNTER_SYNC
  537. #warning "To prevent step loss, motion will pause for PRINTCOUNTER auto-save."
  538. #endif
  539. #if HOMING_Z_WITH_PROBE && IS_CARTESIAN && DISABLED(Z_SAFE_HOMING)
  540. #error "Z_SAFE_HOMING is recommended when homing with a probe. Enable Z_SAFE_HOMING or comment out this line to continue."
  541. #endif
  542. //
  543. // Warn users of potential endstop/DIAG pin conflicts to prevent homing issues when not using sensorless homing
  544. //
  545. #if !USE_SENSORLESS
  546. #if ENABLED(USES_DIAG_JUMPERS) && DISABLED(DIAG_JUMPERS_REMOVED)
  547. #warning "Motherboard DIAG jumpers must be removed when SENSORLESS_HOMING is disabled. (Define DIAG_JUMPERS_REMOVED to suppress this warning.)"
  548. #elif ENABLED(USES_DIAG_PINS) && DISABLED(DIAG_PINS_REMOVED)
  549. #warning "Driver DIAG pins must be physically removed unless SENSORLESS_HOMING is enabled. (See https://bit.ly/2ZPRlt0) (Define DIAG_PINS_REMOVED to suppress this warning.)"
  550. #endif
  551. #endif
  552. #if CANNOT_EMBED_CONFIGURATION
  553. #warning "Disabled CONFIGURATION_EMBEDDING because the target usually has less flash storage. Define FORCE_CONFIG_EMBED to override."
  554. #endif
  555. #if HAS_LCD_CONTRAST && LCD_CONTRAST_MIN >= LCD_CONTRAST_MAX
  556. #warning "Contrast cannot be changed when LCD_CONTRAST_MIN >= LCD_CONTRAST_MAX."
  557. #endif
  558. /**
  559. * FYSETC backlighting
  560. */
  561. #if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1) && !ALL(NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, LED_COLOR_PRESETS)
  562. #warning "Your FYSETC Mini Panel works best with NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, and LED_COLOR_PRESETS."
  563. #endif
  564. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)
  565. #warning "Your FYSETC Mini Panel works best with RGB_LED."
  566. #elif EITHER(FYSETC_MINI_12864_2_0, FYSETC_MINI_12864_2_1) && DISABLED(LED_USER_PRESET_STARTUP)
  567. #warning "Your FYSETC Mini Panel works best with LED_USER_PRESET_STARTUP."
  568. #endif
  569. #if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864) && BOTH(PSU_CONTROL, HAS_COLOR_LEDS) && !LED_POWEROFF_TIMEOUT
  570. #warning "Your FYSETC display with PSU_CONTROL works best with LED_POWEROFF_TIMEOUT."
  571. #endif
  572. /**
  573. * Maple environent
  574. */
  575. #ifdef __STM32F1__
  576. #warning "Maple build environments are deprecated. Please use a non-Maple build environment. Report issues to the Marlin Firmware project."
  577. #endif
  578. /**
  579. * Průša MK3/S/+ fan pin reassignment
  580. */
  581. #if MB(BTT_BTT002_V1_0, EINSY_RAMBO) && DISABLED(NO_MK3_FAN_PINS_WARNING)
  582. #warning "Define MK3_FAN_PINS to swap hotend and part cooling fan pins. (Define NO_MK3_FAN_PINS_WARNING to suppress this warning.)"
  583. #endif