From a62f846e0bd18f96947528f190f2925cff984f60 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Sat, 23 Nov 2024 10:10:42 +0100 Subject: [PATCH] SPE-2574 - Fixed emission of lines M73 C/D to gcode --- src/libslic3r/GCode/GCodeProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 92059d9f03..96a7243f41 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -407,7 +407,7 @@ void GCodeProcessor::TimeMachine::calculate_time(GCodeProcessorResult& result, P // update times for remaining time to printer stop placeholders auto it_stop_time = std::lower_bound(stop_times.begin(), stop_times.end(), block.g1_line_id, [](const StopTime& t, unsigned int value) { return t.g1_line_id < value; }); - if (it_stop_time != stop_times.end() && it_stop_time->g1_line_id == block.g1_line_id) + if (it_stop_time != stop_times.end() && it_stop_time->g1_line_id >= block.g1_line_id) it_stop_time->elapsed_time = float(time); }