|
@@ -31,17 +31,20 @@
|
31
|
31
|
constexpr xy_pos_t screws_tilt_adjust_pos[] = TRAMMING_POINT_XY;
|
32
|
32
|
|
33
|
33
|
#define G35_PROBE_COUNT COUNT(screws_tilt_adjust_pos)
|
34
|
|
-static_assert(G35_PROBE_COUNT >= 3, "TRAMMING_POINT_XY requires at least 3 XY positions.");
|
|
34
|
+static_assert(WITHIN(G35_PROBE_COUNT, 3, 6), "TRAMMING_POINT_XY requires between 3 and 6 XY positions.");
|
35
|
35
|
|
36
|
36
|
#define VALIDATE_TRAMMING_POINT(N) static_assert(N >= G35_PROBE_COUNT || Probe::build_time::can_reach(screws_tilt_adjust_pos[N]), \
|
37
|
37
|
"TRAMMING_POINT_XY point " STRINGIFY(N) " is not reachable with the default NOZZLE_TO_PROBE offset and PROBING_MARGIN.")
|
38
|
|
-VALIDATE_TRAMMING_POINT(0); VALIDATE_TRAMMING_POINT(1); VALIDATE_TRAMMING_POINT(2); VALIDATE_TRAMMING_POINT(3); VALIDATE_TRAMMING_POINT(4);
|
|
38
|
+VALIDATE_TRAMMING_POINT(0); VALIDATE_TRAMMING_POINT(1); VALIDATE_TRAMMING_POINT(2); VALIDATE_TRAMMING_POINT(3); VALIDATE_TRAMMING_POINT(4); VALIDATE_TRAMMING_POINT(5);
|
39
|
39
|
|
40
|
40
|
extern const char point_name_1[], point_name_2[], point_name_3[]
|
41
|
41
|
#ifdef TRAMMING_POINT_NAME_4
|
42
|
42
|
, point_name_4[]
|
43
|
43
|
#ifdef TRAMMING_POINT_NAME_5
|
44
|
44
|
, point_name_5[]
|
|
45
|
+ #ifdef TRAMMING_POINT_NAME_6
|
|
46
|
+ , point_name_6[]
|
|
47
|
+ #endif
|
45
|
48
|
#endif
|
46
|
49
|
#endif
|
47
|
50
|
;
|
|
@@ -56,6 +59,10 @@ extern const char point_name_1[], point_name_2[], point_name_3[]
|
56
|
59
|
#ifdef TRAMMING_POINT_NAME_5
|
57
|
60
|
#undef _NR_TRAM_NAMES
|
58
|
61
|
#define _NR_TRAM_NAMES 5
|
|
62
|
+ #ifdef TRAMMING_POINT_NAME_6
|
|
63
|
+ #undef _NR_TRAM_NAMES
|
|
64
|
+ #define _NR_TRAM_NAMES 6
|
|
65
|
+ #endif
|
59
|
66
|
#endif
|
60
|
67
|
#endif
|
61
|
68
|
#endif
|