🔧 Sanity-check SWITCHING_TOOLHEAD_X_POS (#23985)

This commit is contained in:
Giuliano Zaro
2022-04-04 01:49:51 +02:00
committed by GitHub
parent f7fff4d455
commit 591fa8b753
2 changed files with 10 additions and 1 deletions

View File

@@ -1315,6 +1315,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
*/