From 87fe20b5f5768b31c66899f926b6c8617577af1d Mon Sep 17 00:00:00 2001 From: AnHardt Date: Fri, 9 Dec 2016 00:13:35 +0100 Subject: [PATCH] Simplify long_move() We are not really interested in, if there are blocks. All information we need is in `block_buffer_runtime_us`. --- Marlin/planner.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/planner.h b/Marlin/planner.h index 15cd85258e..b37139c515 100644 --- a/Marlin/planner.h +++ b/Marlin/planner.h @@ -393,11 +393,11 @@ class Planner { #if ENABLED(ENSURE_SMOOTH_MOVES) static bool long_move() { - if (blocks_queued() && block_buffer_runtime_us) { - return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL; - } - else - return true; + if (block_buffer_runtime_us) { + return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL; + } + else + return true; } static void clear_block_buffer_runtime(){