We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd4c1be commit aae08e9Copy full SHA for aae08e9
Marlin/src/feature/bedlevel/abl/x_twist.cpp
@@ -49,6 +49,7 @@ void XATC::print_points() {
49
float lerp(const_float_t t, const_float_t a, const_float_t b) { return a + t * (b - a); }
50
51
float XATC::compensation(const xy_pos_t &raw) {
52
+ if (NEAR_ZERO(spacing)) return 0;
53
float t = (raw.x - start) / spacing;
54
int i = FLOOR(t);
55
LIMIT(i, 0, XATC_MAX_POINTS - 2);
0 commit comments