Simplify long_move()
We are not really interested in, if there are blocks. All information we need is in `block_buffer_runtime_us`.
This commit is contained in:
parent
574d9c7d3d
commit
87fe20b5f5
1 changed files with 5 additions and 5 deletions
|
@ -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(){
|
||||
|
|
Reference in a new issue