|
@ -570,7 +570,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS }, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// At least one segment is required
|
|
|
// At least one segment is required
|
|
|
NOLESS(segments, 1); |
|
|
NOLESS(segments, 1U); |
|
|
|
|
|
|
|
|
// The approximate length of each segment
|
|
|
// The approximate length of each segment
|
|
|
const float inv_segments = 1.0 / float(segments), |
|
|
const float inv_segments = 1.0 / float(segments), |
|
@ -717,7 +717,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS }, |
|
|
// The length divided by the segment size
|
|
|
// The length divided by the segment size
|
|
|
// At least one segment is required
|
|
|
// At least one segment is required
|
|
|
uint16_t segments = cartesian_mm / segment_size; |
|
|
uint16_t segments = cartesian_mm / segment_size; |
|
|
NOLESS(segments, 1); |
|
|
NOLESS(segments, 1U); |
|
|
|
|
|
|
|
|
// The approximate length of each segment
|
|
|
// The approximate length of each segment
|
|
|
const float inv_segments = 1.0 / float(segments), |
|
|
const float inv_segments = 1.0 / float(segments), |
|
|