From ed0fb44bf1922d07ebba6a7130e75ecd49298f9f Mon Sep 17 00:00:00 2001 From: Matt Long Date: Fri, 10 Jul 2020 16:47:39 -0400 Subject: [PATCH] Fix acceleration issue after probing cycle --- g2core/cycle_probing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g2core/cycle_probing.cpp b/g2core/cycle_probing.cpp index c24f74347..3f3db80f1 100644 --- a/g2core/cycle_probing.cpp +++ b/g2core/cycle_probing.cpp @@ -302,7 +302,7 @@ static void _probe_restore_settings() gpio_set_probing_mode(pb.probe_input, false); // set input back to normal operation for (uint8_t axis = 0; axis < AXES; axis++) { // restore axis jerks - cm->a[axis].jerk_max = pb.saved_jerk[axis]; + cm_set_axis_max_jerk(axis, pb.saved_jerk[axis]); } cm_set_absolute_override(MODEL, ABSOLUTE_OVERRIDE_OFF); // release abs override and restore work offsets cm_set_distance_mode(pb.saved_distance_mode);