Skip to content

Commit

Permalink
SPE-2574 - Fixed emission of lines M73 C/D to gcode
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 authored and lukasmatena committed Dec 2, 2024
1 parent 1675e08 commit a62f846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/GCodeProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a62f846

Please sign in to comment.