Skip to content

Commit 72f3a4a

Browse files
committed
⚡️ Optimal recalculate_max_e_jerk
1 parent aa7af2e commit 72f3a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/module/planner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@ class Planner {
10881088
#if HAS_LINEAR_E_JERK
10891089
FORCE_INLINE static void recalculate_max_e_jerk() {
10901090
const float prop = junction_deviation_mm * SQRT(0.5) / (1.0f - SQRT(0.5));
1091-
EXTRUDER_LOOP()
1092-
max_e_jerk[E_INDEX_N(e)] = SQRT(prop * settings.max_acceleration_mm_per_s2[E_AXIS_N(e)]);
1091+
for (uint8_t i = 0; i < DISTINCT_E; ++i)
1092+
max_e_jerk[i] = SQRT(prop * settings.max_acceleration_mm_per_s2[E_AXIS + i]);
10931093
}
10941094
#endif
10951095

0 commit comments

Comments
 (0)