Browse Source

Patch long_move()

While the last move in the planner_buffer is running
it's duration is already subtracted from block_buffer_runtime_us.
AnHardt 8 years ago
parent
commit
706b240251
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/planner.h

+ 1
- 1
Marlin/planner.h View File

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

Loading…
Cancel
Save