Parcourir la source

Simplify long_move()

We are not really interested in, if there are blocks.
All information we need is in `block_buffer_runtime_us`.
AnHardt il y a 7 ans
Parent
révision
87fe20b5f5
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5
    5
      Marlin/planner.h

+ 5
- 5
Marlin/planner.h Voir le fichier

@@ -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(){

Chargement…
Annuler
Enregistrer