Skip to content

Commit b9f7d72

Browse files
authored
🔧 Better BABYSTEP_MULTIPLICATOR_Z sanity-checks (#27471)
1 parent b43d6ed commit b9f7d72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Marlin/src/inc/SanityCheck.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,12 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
500500
#elif ENABLED(BABYSTEP_XY) && !defined(BABYSTEP_MULTIPLICATOR_XY)
501501
#error "BABYSTEP_XY requires BABYSTEP_MULTIPLICATOR_XY."
502502
#elif ENABLED(BABYSTEP_MILLIMETER_UNITS)
503-
static_assert(BABYSTEP_MULTIPLICATOR_Z <= 0.1f, "BABYSTEP_MULTIPLICATOR_Z must be less or equal to 0.1mm.");
503+
static_assert(BABYSTEP_MULTIPLICATOR_Z <= 0.1f, "BABYSTEP_MULTIPLICATOR_Z with BABYSTEP_MILLIMETER_UNITS must be less or equal to 0.1mm.");
504504
#if ENABLED(BABYSTEP_XY)
505505
static_assert(BABYSTEP_MULTIPLICATOR_XY <= 0.25f, "BABYSTEP_MULTIPLICATOR_XY must be less than or equal to 0.25mm.");
506506
#endif
507+
#else
508+
static_assert(BABYSTEP_MULTIPLICATOR_Z && BABYSTEP_MULTIPLICATOR_Z == int(BABYSTEP_MULTIPLICATOR_Z), "BABYSTEP_MULTIPLICATOR_Z must be a non-zero integer.");
507509
#endif
508510
#endif
509511

0 commit comments

Comments
 (0)