SPE-2275: Fixed export of M73 CXX lines to gcode

This commit is contained in:
enricoturri1966 2024-10-24 08:15:26 +02:00 committed by Lukas Matena
parent dfdc407fd6
commit ec8efbd444

View File

@ -320,11 +320,9 @@ void GCodeProcessor::TimeMachine::calculate_time(GCodeProcessorResult& result, P
// detect actual speed moves required to render toolpaths using actual speed
if (mode == PrintEstimatedStatistics::ETimeMode::Normal) {
GCodeProcessorResult::MoveVertex& curr_move = result.moves[block.move_id];
if (curr_move.type != EMoveType::Extrude &&
curr_move.type != EMoveType::Travel &&
curr_move.type != EMoveType::Wipe)
continue;
if (curr_move.type == EMoveType::Extrude ||
curr_move.type == EMoveType::Travel ||
curr_move.type == EMoveType::Wipe) {
assert(curr_move.actual_feedrate == 0.0f);
GCodeProcessorResult::MoveVertex& prev_move = result.moves[block.move_id - 1];
@ -404,6 +402,7 @@ void GCodeProcessor::TimeMachine::calculate_time(GCodeProcessorResult& result, P
std::nullopt
});
}
}
g1_times_cache.push_back({ block.g1_line_id, block.remaining_internal_g1_lines, float(time) });
// 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,