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
 
393
 
394
     #if ENABLED(ENSURE_SMOOTH_MOVES)
394
     #if ENABLED(ENSURE_SMOOTH_MOVES)
395
       static bool long_move() {
395
       static bool long_move() {
396
-          if (blocks_queued()) {
396
+          if (blocks_queued() && block_buffer_runtime_us) {
397
             return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL;
397
             return block_buffer_runtime_us > (LCD_UPDATE_THRESHOLD) * 1000UL + (MIN_BLOCK_TIME) * 3000UL;
398
           }
398
           }
399
           else
399
           else

Loading…
Cancel
Save