Browse Source

Merge pull request #5516 from esenapaj/Suppress-warning

Suppress warning
Scott Lahteine 7 years ago
parent
commit
451ba5df01
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/planner.cpp

+ 3
- 1
Marlin/planner.cpp View File

985
   const uint8_t moves_queued = movesplanned();
985
   const uint8_t moves_queued = movesplanned();
986
 
986
 
987
   // Slow down when the buffer starts to empty, rather than wait at the corner for a buffer refill
987
   // Slow down when the buffer starts to empty, rather than wait at the corner for a buffer refill
988
-  unsigned long segment_time = lround(1000000.0 / inverse_mm_s);
988
+  #if ENABLED(SLOWDOWN) || ENABLED(ULTRA_LCD) || defined(XY_FREQUENCY_LIMIT)
989
+    unsigned long segment_time = lround(1000000.0 / inverse_mm_s);
990
+  #endif
989
   #if ENABLED(SLOWDOWN)
991
   #if ENABLED(SLOWDOWN)
990
     // Segment time im micro seconds
992
     // Segment time im micro seconds
991
     if (moves_queued > 1 && moves_queued < (BLOCK_BUFFER_SIZE) / 2) {
993
     if (moves_queued > 1 && moves_queued < (BLOCK_BUFFER_SIZE) / 2) {

Loading…
Cancel
Save