Kaynağa Gözat

Suppress warning

esenapaj 8 yıl önce
ebeveyn
işleme
ab6b005867
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      Marlin/planner.cpp

+ 3
- 1
Marlin/planner.cpp Dosyayı Görüntüle

@@ -985,7 +985,9 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const
985 985
   const uint8_t moves_queued = movesplanned();
986 986
 
987 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 991
   #if ENABLED(SLOWDOWN)
990 992
     // Segment time im micro seconds
991 993
     if (moves_queued > 1 && moves_queued < (BLOCK_BUFFER_SIZE) / 2) {

Loading…
İptal
Kaydet