🔧 Sanity-check SWITCHING_TOOLHEAD_X_POS (#23985)

This commit is contained in:
Giuliano Zaro authored and Scott Lahteine committed 2022-05-07 18:13:09 -05:00
1 parent bed8abe5b6
commit cbc6f23a8a
2 files changed
+10 -1

No files matched your search

+8
View File
@@ -1301,6 +1301,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#endif
#endif
/**
* Generic Switching Toolhead requirements
*/
#if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
constexpr float thpx[] = SWITCHING_TOOLHEAD_X_POS;
static_assert(COUNT(thpx) == EXTRUDERS, "SWITCHING_TOOLHEAD_X_POS must be an array EXTRUDERS long.");
#endif
/**
* Switching Toolhead requirements
*/