Skip to content

Commit 65d7ec0

Browse files
authored
Conditionally call limit_next_junction_speed
1 parent fd6932b commit 65d7ec0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resonance_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def run_test(self, test_seq, axis, gcmd):
161161
dX, dY = axis.get_point(d)
162162
nX = X + dX
163163
nY = Y + dY
164-
# toolhead.limit_next_junction_speed(abs_last_v)
164+
if hasattr(toolhead, 'limit_next_junction_speed') and callable(toolhead.limit_next_junction_speed):
165+
toolhead.limit_next_junction_speed(abs_last_v)
165166
if v * last_v < 0:
166167
# The move first goes to a complete stop, then changes direction
167168
d_decel = -last_v2 * half_inv_accel

0 commit comments

Comments
 (0)