|
@@ -2041,7 +2041,10 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
|
2041
|
2041
|
#endif
|
2042
|
2042
|
|
2043
|
2043
|
#if ENABLED(SLOWDOWN)
|
2044
|
|
- if (WITHIN(moves_queued, 2, (BLOCK_BUFFER_SIZE) / 2 - 1)) {
|
|
2044
|
+ #ifndef SLOWDOWN_DIVISOR
|
|
2045
|
+ #define SLOWDOWN_DIVISOR 2
|
|
2046
|
+ #endif
|
|
2047
|
+ if (WITHIN(moves_queued, 2, (BLOCK_BUFFER_SIZE) / (SLOWDOWN_DIVISOR) - 1)) {
|
2045
|
2048
|
if (segment_time_us < settings.min_segment_time_us) {
|
2046
|
2049
|
// buffer is draining, add extra time. The amount of time added increases if the buffer is still emptied more.
|
2047
|
2050
|
const uint32_t nst = segment_time_us + LROUND(2 * (settings.min_segment_time_us - segment_time_us) / moves_queued);
|