Browse Source

Sanity-check NOZZLE_PARK_POINT

Scott Lahteine 7 years ago
parent
commit
b213a89ef5
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/src/inc/SanityCheck.h

+ 5
- 0
Marlin/src/inc/SanityCheck.h View File

@@ -558,6 +558,11 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
558 558
   #endif
559 559
 #endif
560 560
 
561
+#if ENABLED(NOZZLE_PARK_FEATURE)
562
+  constexpr float npp[] = NOZZLE_PARK_POINT;
563
+  static_assert(COUNT(npp) == XYZ, "NOZZLE_PARK_POINT requires X, Y, and Z values.");
564
+#endif
565
+
561 566
 /**
562 567
  * Individual axis homing is useless for DELTAS
563 568
  */

Loading…
Cancel
Save