From 22a49ac23a747ff5140a0d3769c9a7612ef68f1d Mon Sep 17 00:00:00 2001 From: Dan Royer Date: Wed, 12 Oct 2022 11:22:16 -0700 Subject: [PATCH] correct max belt length --- Marlin/src/module/polargraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/polargraph.cpp b/Marlin/src/module/polargraph.cpp index 42f99304d789..4428e12968b0 100644 --- a/Marlin/src/module/polargraph.cpp +++ b/Marlin/src/module/polargraph.cpp @@ -44,7 +44,7 @@ xy_pos_t draw_area_min = { X_MIN_POS, Y_MIN_POS }, xy_float_t draw_area_size = { X_MAX_POS - X_MIN_POS, Y_MAX_POS - Y_MIN_POS }; -float polargraph_max_belt_len = HYPOT(draw_area_size.x, draw_area_size.y); +float polargraph_max_belt_len = POLARGRAPH_MAX_BELT_LEN; void inverse_kinematics(const xyz_pos_t &raw) { const float x1 = raw.x - (draw_area_min.x), x2 = (draw_area_max.x) - raw.x, y = raw.y - (draw_area_max.y);