Skip to content

Commit

Permalink
update BABYSTEP_MULTIPLICATOR_Z assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp committed Oct 11, 2024
1 parent 83e38b3 commit d844138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,12 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
#elif ENABLED(BABYSTEP_XY) && !defined(BABYSTEP_MULTIPLICATOR_XY)
#error "BABYSTEP_XY requires BABYSTEP_MULTIPLICATOR_XY."
#elif ENABLED(BABYSTEP_MILLIMETER_UNITS)
static_assert(BABYSTEP_MULTIPLICATOR_Z <= 0.1f, "BABYSTEP_MULTIPLICATOR_Z must be less or equal to 0.1mm.");
static_assert(BABYSTEP_MULTIPLICATOR_Z <= 0.1f, "BABYSTEP_MULTIPLICATOR_Z with BABYSTEP_MILLIMETER_UNITS must be less or equal to 0.1mm.");
#if ENABLED(BABYSTEP_XY)
static_assert(BABYSTEP_MULTIPLICATOR_XY <= 0.25f, "BABYSTEP_MULTIPLICATOR_XY must be less than or equal to 0.25mm.");
#endif
#else
static_assert((BABYSTEP_MULTIPLICATOR_Z == (int)BABYSTEP_MULTIPLICATOR_Z) && (BABYSTEP_MULTIPLICATOR_Z != 0), "BABYSTEP_MULTIPLICATOR_Z must be a non-zero integer.");
#endif
#endif

Expand Down

0 comments on commit d844138

Please sign in to comment.