From 7c6daa7db3fa24154ad035093e0bc87ed19354e1 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 16 May 2024 20:00:26 -0500 Subject: [PATCH] allow merge sooner --- Marlin/src/module/planner.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp index a794f7a52d3e..7c9768a53f29 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -797,6 +797,10 @@ void Planner::calculate_trapezoid_for_block(block_t * const block, const_float_t uint32_t initial_rate = CEIL(block->nominal_rate * entry_factor), final_rate = CEIL(block->nominal_rate * exit_factor); // (steps per second) + // Keep existing kludge against acceleration spikes until #27035 + NOLESS(initial_rate, MIN(120, block->nominal_rate)); + NOLESS(final_rate, MIN(120, block->nominal_rate)); + // Limit minimal step rate (Otherwise the timer will overflow.) NOLESS(initial_rate, MINIMAL_STEP_RATE); NOLESS(final_rate, MINIMAL_STEP_RATE);