From ab6b00586758304510e5f66532d971dedb05bef8 Mon Sep 17 00:00:00 2001 From: esenapaj Date: Fri, 16 Dec 2016 00:43:07 +0900 Subject: [PATCH] Suppress warning --- Marlin/planner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index e9d3a0225..f6a3edfa7 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -985,7 +985,9 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const const uint8_t moves_queued = movesplanned(); // Slow down when the buffer starts to empty, rather than wait at the corner for a buffer refill - unsigned long segment_time = lround(1000000.0 / inverse_mm_s); + #if ENABLED(SLOWDOWN) || ENABLED(ULTRA_LCD) || defined(XY_FREQUENCY_LIMIT) + unsigned long segment_time = lround(1000000.0 / inverse_mm_s); + #endif #if ENABLED(SLOWDOWN) // Segment time im micro seconds if (moves_queued > 1 && moves_queued < (BLOCK_BUFFER_SIZE) / 2) {