Browse Source

Merge pull request #5440 from AnHardt/simplify-long_move

Simplify long_move()
Scott Lahteine 8 years ago
parent
commit
dfdb180db4
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/planner.h

+ 5
- 5
Marlin/planner.h View File

@@ -393,11 +393,11 @@ class Planner {
393 393
 
394 394
     #if ENABLED(ENSURE_SMOOTH_MOVES)
395 395
       static bool long_move() {
396
-          if (blocks_queued() && block_buffer_runtime_us) {
397
-            return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL;
398
-          }
399
-          else
400
-            return true;
396
+        if (block_buffer_runtime_us) {
397
+          return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL;
398
+        }
399
+        else
400
+          return true;
401 401
       }
402 402
       
403 403
       static void clear_block_buffer_runtime(){

Loading…
Cancel
Save