Always limit volumetric speed with Max Volumetric Speed (not just when using autospeed). #2810

This commit is contained in:
Alessandro Ranellucci 2015-06-02 11:54:38 +02:00
parent c37b5c2e87
commit 7b65a35519
2 changed files with 14 additions and 7 deletions

View file

@ -312,6 +312,13 @@ sub _extrude_path {
if ($self->volumetric_speed != 0) {
$speed ||= $self->volumetric_speed / $path->mm3_per_mm;
}
if ($self->config->max_volumetric_speed > 0) {
# Cap speed with max_volumetric_speed anyway (even if user is not using autospeed)
$speed = min(
$speed,
$self->config->max_volumetric_speed / $path->mm3_per_mm,
);
}
my $F = $speed * 60; # convert mm/sec to mm/min
# extrude arc or line