mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 14:45:54 +08:00
SPE-2574 - Fixed emission of lines M73 C/D to gcode
This commit is contained in:
parent
1675e08268
commit
a62f846e0b
@ -407,7 +407,7 @@ void GCodeProcessor::TimeMachine::calculate_time(GCodeProcessorResult& result, P
|
|||||||
// update times for remaining time to printer stop placeholders
|
// 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,
|
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; });
|
[](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);
|
it_stop_time->elapsed_time = float(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user