Skip to content

Commit

Permalink
Detect RRF min speed based on G-Code, (M203 In)
Browse files Browse the repository at this point in the history
Used for time estimates.
  • Loading branch information
n8bot committed Mar 7, 2022
1 parent e32fce8 commit f685ecf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libslic3r/GCode/GCodeProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3094,6 +3094,12 @@ void GCodeProcessor::process_M203(const GCodeReader::GCodeLine& line)

if (line.has_e())
set_option_value(m_time_processor.machine_limits.machine_max_feedrate_e, i, line.e() * factor);

float value;
if (m_flavor == gcfRepRapFirmware && line.has_value('I', value)) {
set_option_value(m_time_processor.machine_limits.machine_min_extruding_rate, i, value * factor);
set_option_value(m_time_processor.machine_limits.machine_min_travel_rate, i, value * factor);
}
}
}
}
Expand Down

0 comments on commit f685ecf

Please sign in to comment.